Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pne-patchfinder-job-streaming' i…
Browse files Browse the repository at this point in the history
…nto pne-patchfinder-job-streaming
  • Loading branch information
dylan-mulligan committed Nov 22, 2023
2 parents ca54c06 + 837bafa commit 6ebd20b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ public void classifyWordsInDescriptionTest() {

String productResult = "[The: OTHER, software: OTHER, version: OTHER, is: OTHER, vulnerable: OTHER, before: SOFTWARE_VERSION, 2.1.0: SOFTWARE_VERSION]";

System.out.println(productDetector.classifyWordsInDescription(words).toString());
assertTrue(productResult.contains(productDetector.classifyWordsInDescription(words).toString()));
assertEquals(productResult, productDetector.classifyWordsInDescription(words).toString());

Check failure on line 107 in productnameextractor/src/test/java/productdetection/ProductDetectorTest.java

View workflow job for this annotation

GitHub Actions / PNE Test Report

ProductDetectorTest.classifyWordsInDescriptionTest

expected: <[The: OTHER, software: OTHER, version: OTHER, is: OTHER, vulnerable: OTHER, before: SOFTWARE_VERSION, 2.1.0: SOFTWARE_VERSION]> but was: <[The: OTHER, software: OTHER, version: OTHER, is: OTHER, vulnerable: SOFTWARE_NAME, before: SOFTWARE_VERSION, 2.1.0: SOFTWARE_VERSION]>
Raw output
org.opentest4j.AssertionFailedError: expected: <[The: OTHER, software: OTHER, version: OTHER, is: OTHER, vulnerable: OTHER, before: SOFTWARE_VERSION, 2.1.0: SOFTWARE_VERSION]> but was: <[The: OTHER, software: OTHER, version: OTHER, is: OTHER, vulnerable: SOFTWARE_NAME, before: SOFTWARE_VERSION, 2.1.0: SOFTWARE_VERSION]>
	at productdetection.ProductDetectorTest.classifyWordsInDescriptionTest(ProductDetectorTest.java:107)
assertEquals(nerResult.toString(), nerModel.classifyComplex(words).toString());
}

Expand Down

0 comments on commit 6ebd20b

Please sign in to comment.