diff options
Diffstat (limited to 'container-core/src/test/java/com/yahoo/component/chain/model/ChainsModelBuilderTest.java')
-rw-r--r-- | container-core/src/test/java/com/yahoo/component/chain/model/ChainsModelBuilderTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/container-core/src/test/java/com/yahoo/component/chain/model/ChainsModelBuilderTest.java b/container-core/src/test/java/com/yahoo/component/chain/model/ChainsModelBuilderTest.java index 54b57789ba8..0871b36b0b3 100644 --- a/container-core/src/test/java/com/yahoo/component/chain/model/ChainsModelBuilderTest.java +++ b/container-core/src/test/java/com/yahoo/component/chain/model/ChainsModelBuilderTest.java @@ -4,15 +4,15 @@ package com.yahoo.component.chain.model; import com.yahoo.component.ComponentId; import com.yahoo.component.ComponentSpecification; import com.yahoo.container.core.ChainsConfig; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.util.Map; import java.util.Set; import static com.yahoo.container.core.ChainsConfig.Components; import static com.yahoo.container.core.ChainsConfig.Chains; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; /** * @author gjoranv @@ -20,27 +20,27 @@ import static org.junit.Assert.assertTrue; public class ChainsModelBuilderTest { @Test - public void components_are_added_to_componentModels() throws Exception { + void components_are_added_to_componentModels() throws Exception { ChainsModel model = chainsModel(); assertEquals(2, model.allComponents().size()); assertTrue(model.componentModels().containsKey(new ComponentId("componentA"))); } @Test - public void components_are_added_to_chainSpecification() throws Exception { + void components_are_added_to_chainSpecification() throws Exception { ChainsModel model = chainsModel(); ChainSpecification chainSpec = model.chainSpecifications().get(new ComponentId("chain1")).model(); assertTrue(getComponentsByName(chainSpec.componentReferences).containsKey("componentA")); } @Test - public void inherited_chains_are_added_to_chainSpecification() throws Exception { + void inherited_chains_are_added_to_chainSpecification() throws Exception { ChainsModel model = chainsModel(); ChainSpecification inheritsChain1 = model.chainSpecifications().get(new ComponentId("inheritsChain1")).model(); assertEquals(2, model.allChainsFlattened().size()); assertTrue(getComponentsByName(inheritsChain1.inheritance.chainSpecifications).containsKey("chain1")); assertTrue(getComponentsByName(inheritsChain1.inheritance.excludedComponents).containsKey("componentA")); - } + } private ChainsModel chainsModel() { ChainsConfig.Builder builder = new ChainsConfig.Builder() |