コード例 #1
0
 @Before
 public void setUp() throws Exception {
   testUser = new User();
   testUser.setPassword(testpassword);
   testUser.setUsername(testusername);
   testUser.setUsertype(testusertype);
 }
コード例 #2
0
 @Test
 public void testGetUsertype() {
   testUser.setUsertype("gamemaker");
   assertEquals("Get UserType is running", "gamemaker", testUser.getUsertype());
 }