Skip to content

MockingT/a

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

import org.junit.runner.JUnitCore; import org.junit.runner.Result; import org.junit.runner.notification.Failure;

public class TestRunner { public static void main(String[] args) { Result result = JUnitCore.runClasses(TestJunit.class); for(Failure failure : result.getFailures()) { System.out.println(failure.toString()); } System.out.println(result.wasSuccessful()); } }

import org.junit.Test; import static org.junit.Assert.assertEquals;

public class TestJunit { String message = "Hello World"; helloworld hw = new helloworld(); @Test public void testPrint(){ assertEquals(message, hw.get_text()); } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published