List of usage examples for junit.framework Assert assertNotNull
static public void assertNotNull(Object object)
From source file:gov.nih.nci.integration.transformer.XSLTTransformerAdverseEventTest.java
/** * Test case for transforming Interim XML to XMLString * //from w w w.j av a 2 s. c om * @throws IntegrationException - IntegrationException */ @Test public void transformInterimToXMLStringTest() throws IntegrationException { xsltTransformer.initTransformer(caaersAdverseEventXsl, baseXSLPath); final String trnsfrmdMsg = transformXML(getAEInterimMessage()); Assert.assertNotNull(trnsfrmdMsg); }
From source file:org.codehaus.grepo.query.hibernate.generator.GeneratorRepositoryTest.java
@Test public void testWithNativeGenerator() { Assert.assertNotNull(repo.getWithNativeGenerator("username")); }
From source file:com.ace.erp.dao.OrganizationMapperTest.java
@Test public void getCountTest() { Organization organization = new Organization(); organization.setId(1);/* w ww .j av a 2 s . co m*/ Integer count = organizationMapper.getUserCount(new UserOrganization(null, organization)); System.out.println(count); Assert.assertNotNull(count); }
From source file:com.taobao.ad.jpa.test.RepeatAlarmTest.java
@Test public void testFindReapeatAlerms() { RepeatAlarmDO r = new RepeatAlarmDO(); List<RepeatAlarmDO> rs = repeatAlarmBO.findRepeatAlarms(r); Assert.assertNotNull(rs); Assert.assertEquals(8, rs.size());//w w w . j av a2 s. c o m }
From source file:org.openxdata.server.service.impl.ReportServiceTest.java
@Test public void getReports_shouldReturnAllReports() throws Exception { List<ReportGroup> reportGroups = reportsService.getReportGroups(); Assert.assertNotNull(reportGroups); Assert.assertEquals(1, reportGroups.size()); ReportGroup reportGroup = reportGroups.get(0); Assert.assertEquals("General", reportGroup.getName()); List<Report> reports = reportGroup.getReports(); Assert.assertNotNull(reports);/* ww w. j a va2 s .com*/ Assert.assertEquals(1, reports.size()); Report report = reports.get(0); Assert.assertEquals("Report Name", report.getName()); }
From source file:gov.nih.nci.integration.transformer.XSLTTransformerConsentTest.java
/** * Testcase for transforming Wrapper XML to Interim XML * /*from w ww.jav a 2s . c om*/ * @throws IntegrationException - IntegrationException */ @Test public void transformWrapperToInterimXMLTest() throws IntegrationException { xsltTransformer.initTransformer("caCISRequest-to-MsgBroadcasterConsentInboundMsg.xsl", baseXSLPath); final String trnsfrmdMsg = transformXML(getConsentWrapperMessage()); Assert.assertNotNull(trnsfrmdMsg); }
From source file:gov.nih.nci.integration.transformer.XSLTTransformerSpecimenTest.java
/** * Testcase for transforming Wrapper XML to Interim XML * /*from w ww.j a va2 s . c om*/ * @throws IntegrationException - IntegrationException */ @Test public void transformWrapperToInterimXMLTest() throws IntegrationException { xsltTransformer.initTransformer("caCISRequest-to-MsgBroadcasterSpecimenInboundMsg.xsl", baseXSLPath); final String trnsfrmdMsg = transformXML(getSpecimenWrapperXML()); Assert.assertNotNull(trnsfrmdMsg); }
From source file:org.obiba.onyx.core.service.impl.AnyPasswordValidationStrategyImplTest.java
@Test public void testGeneratePasswordReturnsValue() { String password = anyPasswordStrategy.generatePassword(user); Assert.assertNotNull(password); }
From source file:org.sonatype.nexus.kenai.internal.KenaiRealmTest.java
@Test public void testAuthenticate() throws Exception { KenaiRealm kenaiRealm = this.getRealm(); AuthenticationInfo info = kenaiRealm.getAuthenticationInfo(new UsernamePasswordToken(username, password)); Assert.assertNotNull(info); }
From source file:com.comcast.cat.domain.service.it.BaseDomainIT.java
@Test public void testContext() { Assert.assertNotNull(settopDomainService); }