Class FactoryTest
- java.lang.Object
-
- test.de.iip_ecosphere.platform.support.fakeAas.FactoryTest
-
public class FactoryTest extends java.lang.ObjectTests the factory/descriptor.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classFactoryTest.DisabledFactoryA factory that reacts like the DUMMY factory but is a different instance.
-
Constructor Summary
Constructors Constructor Description FactoryTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertConstants()Asserting plain constants is ridiculous.private static voidassertRegistry(de.iip_ecosphere.platform.support.aas.Registry reg)Asserts a default/dummy registry instance.static de.iip_ecosphere.platform.support.aas.AasFactorycreateDisabledFactory()Creates a factory instance that does nothing.voidlangStringTest()Tests theLangString.voidtestDummyFactory()Tests explicitly setting the dummy factory.voidtestFakeFactory()Tests that there is a fake factory through Java Service loader.
-
-
-
Method Detail
-
createDisabledFactory
public static de.iip_ecosphere.platform.support.aas.AasFactory createDisabledFactory()
Creates a factory instance that does nothing. The instance delegates toAasFactory.DUMMYto keep this instance in the testing loop.- Returns:
- the factory instance
-
testFakeFactory
public void testFakeFactory() throws java.io.IOExceptionTests that there is a fake factory through Java Service loader.- Throws:
java.io.IOException- shall not occur
-
testDummyFactory
public void testDummyFactory() throws java.io.IOExceptionTests explicitly setting the dummy factory.- Throws:
java.io.IOException- shall not occur
-
assertRegistry
private static void assertRegistry(de.iip_ecosphere.platform.support.aas.Registry reg) throws java.io.IOExceptionAsserts a default/dummy registry instance.- Parameters:
reg- the registry instance- Throws:
java.io.IOException- shall not occur
-
assertConstants
public void assertConstants()
Asserting plain constants is ridiculous. Real function happens in implementation components.
-
langStringTest
public void langStringTest()
Tests theLangString.
-
-