Created
          May 3, 2011 08:45 
        
      - 
      
- 
        Save mgenov/953026 to your computer and use it in GitHub Desktop. 
    LearnToRegisterNewCustomersTest
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class LearnToRegisterNewCustomersTest { | |
| private ProvisioningServicePortType service; | |
| @Before | |
| public void cleanUpExistingCustomers() throws ServiceException, RemoteException { | |
| ProvisioningService locator = new ProvisioningServiceLocator(); | |
| service = locator.getProvisioningServicePort(); | |
| ((Stub) service).setUsername("xxxx"); | |
| ((Stub) service).setPassword("xxxx"); | |
| // we have to clean existing customer, to put testing environment in a clean state | |
| service.deleteCustomer("test_123"); | |
| } | |
| @Test | |
| public void addNewCustomer() throws ServiceException, RemoteException { | |
| assertNotNull(service.createCustomer("test_123", "2", "0000", "0000")); | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment