Skip to content

Commit

Permalink
Properly disable tests for non-implemented features
Browse files Browse the repository at this point in the history
The JDBC based Tenant Service does not support Trust Anchor Groups. The
corresponding unit tests have therefore been marked as @disabled to
prevent (slow) execution of the empty test method bodies.
  • Loading branch information
sophokles73 committed Apr 17, 2024
1 parent dc78911 commit 825cd39
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,39 @@
package org.eclipse.hono.deviceregistry.jdbc.impl;

import org.eclipse.hono.service.tenant.AbstractTenantServiceTest;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import io.vertx.junit5.VertxTestContext;

class JdbcBasedTenantServiceTest extends AbstractJdbcRegistryTest implements AbstractTenantServiceTest {

@Disabled("This feature is not implemented")
@Test
@Override
public void testAddTenantWithTrustAnchorGroupAndDuplicateTrustAnchorFails(
final VertxTestContext ctx) {
//This feature is not implemented
}

@Disabled("This feature is not implemented")
@Test
@Override
public void testAddTenantWithTrustAnchorGroupAndDuplicateTrustAnchorSucceeds(
final VertxTestContext ctx) {
//This feature is not implemented
}

@Disabled("This feature is not implemented")
@Test
@Override
public void testUpdateTenantWithTrustAnchorGroupAndDuplicateTrustAnchorFails(final VertxTestContext ctx) {
//This feature is not implemented
}

@Disabled("This feature is not implemented")
@Test
@Override
public void testUpdateTenantWithTrustAnchorGroupAndDuplicateTrustAnchorSucceeds(
final VertxTestContext ctx) {
//This feature is not implemented
}
}

0 comments on commit 825cd39

Please sign in to comment.