mbien commented on code in PR #5107:
URL: https://github.com/apache/netbeans/pull/5107#discussion_r1047673049


##########
java/spi.java.hints/test/unit/src/org/netbeans/modules/java/hints/spiimpl/UtilitiesTest.java:
##########
@@ -366,7 +366,7 @@ public void testPositionsForCorrectStatement() throws 
Exception {
         assertTrue(errors.isEmpty());
         assertPositions(result, positions[0], code, "assert true;", "true");
     }
-
+/* TODO: fails
     public void testCasePattern() throws Exception {

Review Comment:
   this one failed with:
   
   ```
   Testcase: 
testCasePattern(org.netbeans.modules.java.hints.spiimpl.UtilitiesTest):    
FAILED
   expected:
   <[$expr, $stmts$, $stmts$;, case $expr: foo bar $stmts$;, foo, foo bar ]> 
   but was:
   <[$expr, $expr, $stmts$, $stmts$;, case $expr: foo bar $stmts$;, foo, foo 
bar ]>
   junit.framework.AssertionFailedError: expected:<[$expr, $stmts$, $stmts$;, 
case $expr: foo bar $stmts$;, foo, foo bar ]> but was:<[$expr, $expr, $stmts$, 
$stmts$;, case $expr: foo bar $stmts$;, foo, foo bar ]>
        at 
org.netbeans.modules.java.hints.spiimpl.UtilitiesTest.assertPositions(UtilitiesTest.java:660)
        at 
org.netbeans.modules.java.hints.spiimpl.UtilitiesTest.testCasePattern(UtilitiesTest.java:382)
        at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
        at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
        at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
        at java.base/java.lang.Thread.run(Thread.java:1589)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to