|
|
@ -16,6 +16,9 @@ public class CustomersTest extends TestCase { |
|
|
|
assertTrue(nicknameIsAvailable); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Register a user only when the given nickname is available. |
|
|
|
*/ |
|
|
|
public void test_nicknameIsTaken() { |
|
|
|
// Given |
|
|
|
Customers customers = new Customers(); |
|
|
@ -32,6 +35,9 @@ public class CustomersTest extends TestCase { |
|
|
|
assertFalse(nicknameIsTaken); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Register a single user and check whether it worked. |
|
|
|
*/ |
|
|
|
public void test_registerSingleUser() { |
|
|
|
// Given |
|
|
|
Customers customers = new Customers(); |
|
|
|