Example #1
0
  public void testCreateVendor() {
    String nextId = System.currentTimeMillis() + "";
    VendorEntity vendorEntity = new VendorEntity();
    vendorEntity.setId(nextId);
    vendorEntity.setName("Cisco");
    vendorEntity.setPoCreated(true);
    vendorEntity.setPoNumber(564774);
    vendorEntity.setPoDetails("Webex Communicator");
    vendorEntity.setType("Staff_Augmentation");

    VendorEntityProvider entityProvider = new VendorEntityProvider(entityProviderManager);
    entityProvider.createEntity(null, vendorEntity, null);
    assertNotNull(vendorEntity.getPoDetails());
  }
Example #2
0
 public void testSelectVendor() {
   VendorEntityProvider entityProvider = new VendorEntityProvider(entityProviderManager);
   entityProvider.getEntity(new EntityReference());
   assertNotNull(entityProvider.getEntityPrefix());
 }