Prerequisite class
public class TestMethods {
/**
Blank check
@return With or without blank
/**
int value check
String
@return int With or without value judgment
setUpBeforeClass
A method that is executed before the first test method of this test class is called
tearDownAfterClass
Method executed after the last test method of this test class is called
setUp
Methods executed before each test method is called
tearDown
assertArrayEquaals
If the expected value and the actual value are equal, the process ends normally. If they are not equal, it ends in failure
asertEquals
If the expected value and the actual value are equal, the process ends normally. Failure if not equal
assertFalse
If the actual value is false, the process ends normally. If true, it ends in failure
assertNotNull
If the actual value is not null, it ends normally. Fails if null
assertNotSame
If the expected value and the actual value do not have the same reference, the process ends normally. If the same reference is made, it ends in failure
assertNull
If the actual value is null, it ends normally. Fails if not null
assertSame
If the expected value and the actual value have the same reference, the process ends normally. If you do not make the same reference, it will end in failure
assertTrue
If the actual value is true, the process ends normally. If false, it ends in failure
fail
Fails when this method is executed
Method executed after each test method is called
testIsBlank
Test method for isBlank method of the class under test
testIsInt
Test method for isInt method of the class under test
Recommended Posts