pls work
This commit is contained in:
parent
e374be7175
commit
c3f35ad540
1 changed files with 10 additions and 5 deletions
|
@ -28,11 +28,16 @@ public class ServiceTest {
|
|||
|
||||
@Test
|
||||
public void addServiceProviderTest(){
|
||||
service.addServiceProvider( new ServiceProvider( "John123", "1234567890", "John", "Doe" ) );
|
||||
service.addServiceProvider( new ServiceProvider( "Jane123", "1234567890", "Jane", "Doe" ) );
|
||||
service.addServiceProvider( new ServiceProvider( "John123", "1234567890", "John", "Doe" ) );
|
||||
service.addServiceProvider( new ServiceProvider( "Jane123", "1234567890", "Jane", "Doe" ) );
|
||||
service.addServiceProvider( new ServiceProvider( "Jane123", "1234567890", "John", "Doe" ) );
|
||||
service.addServiceProvider( new ServiceProvider( "John123", "1234567890", "John", "Doe",
|
||||
"testaddress", "8888888888", "companydotcom", true) );
|
||||
service.addServiceProvider( new ServiceProvider( "Jane123", "1234567890", "Jane", "Doe",
|
||||
"testaddress", "8888888888", "companydotcom", true) );
|
||||
service.addServiceProvider( new ServiceProvider( "John123", "1234567890", "John", "Doe",
|
||||
"testaddress", "8888888888", "companydotcom", true) );
|
||||
service.addServiceProvider( new ServiceProvider( "Jane123", "1234567890", "Jane", "Doe",
|
||||
"testaddress", "8888888888", "companydotcom", true) );
|
||||
service.addServiceProvider( new ServiceProvider( "Jane123", "1234567890", "John", "Doe",
|
||||
"testaddress", "8888888888", "companydotcom", true) );
|
||||
int numOfSP = service.getServiceProviders().size();
|
||||
assertEquals( 2,numOfSP );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue