STAMP-project / evosuite-ramp

Runtime test AMPlification (RAMP) implements novel features for automatic test generation. It is built on top of EvoSuite.
https://www.stamp-project.eu
GNU Lesser General Public License v3.0
0 stars 1 forks source link

No assertion in the seeding-generated test #7

Open vmassol opened 5 years ago

vmassol commented 5 years ago

Is it normal that I got a generated test that has no assertion (I guess it is but I'm interested to know more about it ;)):

    @Ignore
  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      Html4TagProvider html4TagProvider0 = new Html4TagProvider();
      CleanerProperties cleanerProperties0 = new CleanerProperties(html4TagProvider0);
      XWikiDOMSerializer xWikiDOMSerializer0 = new XWikiDOMSerializer(cleanerProperties0);
      DeferredDocumentImpl deferredDocumentImpl0 = new DeferredDocumentImpl();
      DOMImplementation dOMImplementation0 = deferredDocumentImpl0.getImplementation();
      DocumentBuilder documentBuilder0 = mock(DocumentBuilder.class, new ViolatedAssumptionAnswer());
      doReturn(dOMImplementation0).when(documentBuilder0).getDOMImplementation();
      TagNode tagNode0 = new TagNode("self");
      DoctypeToken doctypeToken0 = new DoctypeToken("ITML", "true", "self", "empty", "empty");
      cleanerProperties0.setAllowInvalidAttributeNames(true);
      tagNode0.setDocType(doctypeToken0);
      xWikiDOMSerializer0.createDOM(documentBuilder0, tagNode0);
      DocumentBuilder documentBuilder1 = mock(DocumentBuilder.class, new ViolatedAssumptionAnswer());
      doReturn((DOMImplementation) null).when(documentBuilder1).getDOMImplementation();
      xWikiDOMSerializer0.createDOM(documentBuilder1, tagNode0);
  }

(Note the ignore which I added because the test fails when executed)

Thanks!

pderakhshanfar commented 5 years ago

@vmassol, yes EvoSuite may generate tests without assertion as well.