You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/06/17 22:52:03 UTC
[GitHub] [netbeans] BradWalker opened a new pull request #1305: Cleanup
junit assert
BradWalker opened a new pull request #1305: Cleanup junit assert
URL: https://github.com/apache/netbeans/pull/1305
There are some deprecation warnings sent by using JUnit..
[repeat] /home/bwalker/netbeans-11.0/java/java.hints.test/src/org/netbeans/modules/java/hints/test/api/HintTest.java:57: warning: [deprecation] Assert in junit.framework has been deprecated
```
[repeat] import junit.framework.Assert;
[repeat] ^
[repeat] /home/bwalker/netbeans-11.0/java/java.hints.test/src/org/netbeans/modules/java/hints/test/api/HintTest.java:58: warning: [deprecation] Assert in junit.framework has been deprecated
[repeat] import static junit.framework.Assert.assertEquals;
[repeat] ^
[repeat] /home/bwalker/netbeans-11.0/java/java.hints.test/src/org/netbeans/modules/java/hints/test/api/HintTest.java:59: warning: [deprecation] Assert in junit.framework has been deprecated
```
These warning are because the JUnit class has changed. The method has stayed the same..
So changing from
import junit.framework.Assert;
to
import org.junit.Assert;
will fix all of these..
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists