需要注意:main和test里面在输出字符串的时候要一毛一样,比如“hello world” 要不然报错“Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec <<< FAILURE!
testHello(com.weq.hello1.HelloWorldTest) Time elapsed: 0.009 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[Hello World!]> but was:<[hello world]>”
testHello(com.weq.hello1.HelloWorldTest) Time elapsed: 0.009 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[Hello World!]> but was:<[hello world]>”
2018-07-19