Class AbstractWidgetDeclarationSpringTest
- java.lang.Object
-
- com.hybris.cockpitng.testing.spring.AbstractWidgetDeclarationSpringTest
-
public abstract class AbstractWidgetDeclarationSpringTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CockpitComponentDefinitionServicecockpitComponentDefinitionServiceprotected DefaultJSONMapperjsonMapper
-
Constructor Summary
Constructors Constructor Description AbstractWidgetDeclarationSpringTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertThatObjectIsJsonSerializable(java.lang.Object object, java.lang.String socketName)java.util.List<AbstractCockpitComponentDefinition>getAllComponentDefinitions()voidprepareTestInstance()voidsocketInputsShouldBeSerializable()Verifies if socket inputs declared in definition.xml files are serializable, what is required to work with Angular.js framework properly.voidsocketOutputsShouldBeSerializable()Verifies if socket outputs declared in definition.xml files are serializable, what is required to work with Angular.js framework properly.voidtestForwardSocketEvents()voidtestInputSocketNameAndTypeCompatibility()voidtestSocketTypeExists()voidtestSocketUniqueness()voidtestWidgetController()
-
-
-
Field Detail
-
jsonMapper
protected DefaultJSONMapper jsonMapper
-
cockpitComponentDefinitionService
protected CockpitComponentDefinitionService cockpitComponentDefinitionService
-
-
Method Detail
-
getAllComponentDefinitions
public java.util.List<AbstractCockpitComponentDefinition> getAllComponentDefinitions()
-
prepareTestInstance
public void prepareTestInstance()
-
testWidgetController
public void testWidgetController()
-
testSocketUniqueness
public void testSocketUniqueness()
-
testSocketTypeExists
public void testSocketTypeExists()
-
testInputSocketNameAndTypeCompatibility
public void testInputSocketNameAndTypeCompatibility() throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
testForwardSocketEvents
public void testForwardSocketEvents()
-
socketInputsShouldBeSerializable
public void socketInputsShouldBeSerializable()
Verifies if socket inputs declared in definition.xml files are serializable, what is required to work with Angular.js framework properly. This test is executed only if test class deriving from this class is annotated with @SocketsAreJsonSerializable annotation
-
socketOutputsShouldBeSerializable
public void socketOutputsShouldBeSerializable()
Verifies if socket outputs declared in definition.xml files are serializable, what is required to work with Angular.js framework properly. This test is executed only if test class deriving from this class is annotated with @SocketsAreJsonSerializable annotation
-
assertThatObjectIsJsonSerializable
public void assertThatObjectIsJsonSerializable(java.lang.Object object, java.lang.String socketName)
-
-