Fix assertion
authorrfscholte <rfscholte@apache.org>
Wed, 1 Aug 2018 19:20:44 +0000 (21:20 +0200)
committerrfscholte <rfscholte@apache.org>
Wed, 1 Aug 2018 19:20:44 +0000 (21:20 +0200)
src/it/package/verify.groovy

index 875917c..abd830b 100644 (file)
@@ -24,16 +24,9 @@ if (!System.getProperty('java.version').startsWith('1.8.')) {
   // classes -> java.base
   //   org.apache.maven.plugins.jdeps.its                 -> java.io                                            java.base
   assert 1 == buildLog.readLines().dropWhile{ it != 'classes -> java.base' }.drop(1).takeWhile{ !it.startsWith( '[INFO]' ) }.size()
-} else if (System.getProperty('os.name').startsWith('Windows')) {
+} else {
   // classes -> c:\Program Files\Java\jdk1.8.0_152\jre\lib\rt.jar
   //   org.apache.maven.plugins.jdeps.its (classes)
   //      -> java.io  
   assert 2 == buildLog.readLines().dropWhile{ !it.startsWith("classes -> ") }.drop(1).takeWhile{ !it.startsWith( '[INFO]' ) }.size()
-} else {
-  // classes -> JDK removed internal API
-  // classes -> java.base
-  //    <unnamed>                                          -> java.io                                            java.base
-  //    <unnamed>                                          -> java.lang                                          java.base
-  //    <unnamed>                                          -> sun.misc                                           JDK internal API (JDK removed internal API)
-  assert 5 == buildLog.readLines().dropWhile{ !it.startsWith("classes -> ") }.drop(1).takeWhile{ !it.startsWith( '[INFO]' ) }.size()
 }