コード例 #1
0
 /** Tests ScorecardEditor(String user) method with accuracy state. */
 public void testScorecardEditorAccuracy1() {
   ScorecardEditor e = new ScorecardEditor("crackme");
   assertEquals("constructor is wrong.", "crackme", e.getUser());
 }
コード例 #2
0
 /** Tests ScorecardEditor(Scorecard scorecard, String user) method with accuracy state. */
 public void testScorecardEditorAccuracy2() {
   assertEquals("constructor is wrong.", "crackme", editor.getUser());
   assertEquals("constructor is wrong.", card, editor.getScorecard());
 }
コード例 #3
0
 /** Tests getUser() method with accuracy state. */
 public void testGetUserAccuracy() {
   assertEquals("getUser is wrong.", "crackme", editor.getUser());
 }