Skip to content

Commit cf7581a

Browse files
committed
Properly disable tests for non-implemented features
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.
1 parent 1fde006 commit cf7581a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

services/device-registry-jdbc/src/test/java/org/eclipse/hono/deviceregistry/jdbc/impl/JdbcBasedTenantServiceTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,39 @@
1414
package org.eclipse.hono.deviceregistry.jdbc.impl;
1515

1616
import org.eclipse.hono.service.tenant.AbstractTenantServiceTest;
17+
import org.junit.jupiter.api.Disabled;
18+
import org.junit.jupiter.api.Test;
1719

1820
import io.vertx.junit5.VertxTestContext;
1921

2022
class JdbcBasedTenantServiceTest extends AbstractJdbcRegistryTest implements AbstractTenantServiceTest {
2123

24+
@Disabled("This feature is not implemented")
25+
@Test
2226
@Override
2327
public void testAddTenantWithTrustAnchorGroupAndDuplicateTrustAnchorFails(
2428
final VertxTestContext ctx) {
25-
//This feature is not implemented
2629
}
2730

31+
@Disabled("This feature is not implemented")
32+
@Test
2833
@Override
2934
public void testAddTenantWithTrustAnchorGroupAndDuplicateTrustAnchorSucceeds(
3035
final VertxTestContext ctx) {
3136
//This feature is not implemented
3237
}
3338

39+
@Disabled("This feature is not implemented")
40+
@Test
3441
@Override
3542
public void testUpdateTenantWithTrustAnchorGroupAndDuplicateTrustAnchorFails(final VertxTestContext ctx) {
3643
//This feature is not implemented
3744
}
3845

46+
@Disabled("This feature is not implemented")
47+
@Test
3948
@Override
4049
public void testUpdateTenantWithTrustAnchorGroupAndDuplicateTrustAnchorSucceeds(
4150
final VertxTestContext ctx) {
42-
//This feature is not implemented
4351
}
4452
}

0 commit comments

Comments
 (0)