-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
Description
command line: java -jar /Users/vmassol/dev/dspot/dspot/target/dspot-1.1.1-SNAPSHOT-jar-with-dependencies.jar --path-to-properties dspot.properties --test-criterion JacocoCoverageSelector --verbose --generate-new-test-class --with-comment
Executed in xwiki-commons/xwiki-commons-core/xwiki-commons-component/xwiki-commons-component-default
Generates a AmplEmbeddableComponentManagerTest test case class which has:
...
@Test(timeout = 10000)
public void testLookupThisComponentManager() throws Exception, ComponentLookupException {
// AssertGenerator add assertion
Assert.assertNull(((EmbeddableComponentManager) (ecm)).getParent());
// AssertGenerator add assertion
Assert.assertNull(((EmbeddableComponentManager) (ecm)).getNamespace());
// AssertGenerator add assertion
Assert.assertNull(((EmbeddableComponentManager) (ecm)).getComponentEventManager());
// AssertGenerator create local variable with return value of invocation
Object o_testLookupThisComponentManager__3 = new EmbeddableComponentManager().getInstance(ComponentManager.class);
// AssertGenerator add assertion
Assert.assertNull(((EmbeddableComponentManager) (o_testLookupThisComponentManager__3)).getParent());
// AssertGenerator add assertion
Assert.assertNull(((EmbeddableComponentManager) (o_testLookupThisComponentManager__3)).getNamespace());
// AssertGenerator add assertion
Assert.assertNull(((EmbeddableComponentManager) (o_testLookupThisComponentManager__3)).getComponentEventManager());
}
...
And this doesn't compile (variable "ecm" isn't declared...).
