1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class StudentTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class StudentTest
- {
- /**
- * Default constructor for test class StudentTest
- */
- public StudentTest()
- {
- }
-
- /**
- * Sets up the test fixture.
- *
- * Called before every test case method.
- */
- @Before
- public void setUp()
- {
- }
-
- /**
- * Tears down the test fixture.
- *
- * Called after every test case method.
- */
- @After
- public void tearDown()
- {
- }
-
- @Test
- public void testFoo()
- {
- Student student1 = new Student("shiv", 1995, "345");
- assertNotSame(123, student1.getStudentID());
- }
-
- @Test
- public void testfoo1()
- {
- Student student1 = new Student("shiv", 1995, "345");
- assertEquals("345", student1.getStudentID());
- }
- }
-
-
|