@Test public void testJoePublisherTmodel() { tckTModel.saveJoePublisherTmodel(authInfoJoe, true); // Now if we use a finder it should be found. TModelList tModelList = tckTModel.findJoeTModelDetail(); Assert.assertNotNull(tModelList.getTModelInfos()); tckTModel.deleteJoePublisherTmodel(authInfoJoe); // Even if it deleted you should still be able to access it through a getTModelDetail TModelDetail detail = tckTModel.getJoePublisherTmodel(authInfoJoe); Assert.assertNotNull(detail.getTModel()); // However if we use a finder it should not be found. TModelList tModelList2 = tckTModel.findJoeTModelDetail(); Assert.assertNull(tModelList2.getTModelInfos()); // Make sure none of the found key generators is Joe's key generator TModelList tModelList3 = tckTModel.findJoeTModelDetailByCategoryBag(); for (TModelInfo tModelInfo : tModelList3.getTModelInfos().getTModelInfo()) { Assert.assertFalse( "uddi:uddi.joepublisher.com:keygenerator".equals(tModelInfo.getTModelKey())); } }
@Test public void testSamSyndicatorTmodelTest() { tckTModel.saveSamSyndicatorTmodel(authInfoSam); tckTModel.deleteSamSyndicatorTmodel(authInfoSam); }