Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Jul 22, 2021
1 parent dfc85ba commit e028796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public class ComponentRegistryImplTest {

@BeforeClass
public static void beforeAll() {
System.setProperty("cca.debug.asm", "true");
CcaBootstrapTest.addStaticComponentInitializers(
TEST_ID_1,
TEST_ID_2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public class QualifiedComponentFactoryTest {

@BeforeClass
public static void beforeAll() {
System.setProperty("cca.debug.asm", "true");
CcaBootstrapTest.addStaticComponentInitializers(
TEST_ID_1,
TEST_ID_2,
Expand Down Expand Up @@ -79,9 +78,9 @@ public void sortThrowsOnUnsatisfiedDependency() {
var key1 = ComponentRegistry.getOrCreate(TEST_ID_1, ComponentRegistryImplTest.TestComponentNotItf.class);
var key2 = ComponentRegistry.getOrCreate(TEST_ID_2, ComponentRegistryImplTest.TestComponentNotItf.class);
map.put(key1, new QualifiedComponentFactory<>(new Object(), key1.getComponentClass(), Set.of(key2)));
assertThrows(StaticComponentLoadingException.class, () -> QualifiedComponentFactory.sort(map));
assertThrows(StaticComponentLoadingException.class, () -> QualifiedComponentFactory.checkDependenciesSatisfied(map));
map.put(key2, new QualifiedComponentFactory<>(new Object(), key1.getComponentClass(), Set.of()));
QualifiedComponentFactory.sort(map);
QualifiedComponentFactory.checkDependenciesSatisfied(map);
}

@Test
Expand Down

0 comments on commit e028796

Please sign in to comment.