|
@ -0,0 +1,20 @@ |
|
|
|
|
|
package de.hs_fulda.ciip.projjpn; |
|
|
|
|
|
|
|
|
|
|
|
import junit.framework.TestCase; |
|
|
|
|
|
|
|
|
|
|
|
public class CustomersTest extends TestCase { |
|
|
|
|
|
|
|
|
|
|
|
public void test_nicknameIsFree() { |
|
|
|
|
|
// Given |
|
|
|
|
|
Customers customers = new Customers(); |
|
|
|
|
|
String availableNickname = "beastMaster64"; |
|
|
|
|
|
|
|
|
|
|
|
// When |
|
|
|
|
|
boolean nicknameIsAvailable = customers.nickNameAvailable(availableNickname); |
|
|
|
|
|
|
|
|
|
|
|
// Then |
|
|
|
|
|
assertTrue(nicknameIsAvailable); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |