List of usage examples for org.springframework.util Assert isTrue
@Deprecated public static void isTrue(boolean expression)
From source file:org.pieShare.pieTools.pieUtilities.service.regexService.RegexServiceTest.java
/** * Test of matches method, of class RegexService. *//* ww w . j a v a 2 s . c o m*/ @Test public void testMatches() { Pattern p = Pattern.compile(".*thumbs\\.db.*"); Matcher m = p.matcher("/test/test/test/thumbs.db/"); boolean b = m.matches(); Assert.isTrue(b); }
From source file:org.eclipse.swordfish.core.util.ServiceMixSupport.java
public static Exchange toNMRExchange(MessageExchange messageExchange) { Assert.notNull(messageExchange);// w w w . j a v a 2 s . c om Assert.isTrue(messageExchange instanceof MessageExchangeImpl); return ((MessageExchangeImpl) messageExchange).getInternalExchange(); }
From source file:com.zonekey.ssm.common.log.queue.PeriodConsumer.java
@PostConstruct public void checkSetting() { Assert.isTrue(batchSize > 0); Assert.isTrue(period > 0); }
From source file:com.aaj.frontend.bu.UserManagerTest.java
@Test public void test1() { log.info("starting test1 ..."); //Assert.notNull(null); Assert.isTrue(Boolean.TRUE); }
From source file:pt.webdetails.cdb.query.SaikuQueryTest.java
@Test public void testSaikuQueryExportCda() throws JSONException { SaikuQuery sq = new SaikuQuery(); JSONObject queryDefinition = new JSONObject( "{name: 'Name', '@rid': '4:5',group: 'group1', guid :'id', definition: {jndi: 'j', cube: 'c', catalog: 'ca', query: 'q'}}"); sq.fromJSON(queryDefinition);/*from w ww . j a v a2 s .c o m*/ Connection c = sq.exportCdaConnection(); Assert.isTrue(c instanceof pt.webdetails.cda.connections.mondrian.JndiConnection); DataAccess da = sq.exportCdaDataAccess(); Assert.isTrue(da instanceof pt.webdetails.cda.dataaccess.MdxDataAccess); }
From source file:org.springextensions.db4o.example.PersonTypeHandlerPredicate.java
public PersonTypeHandlerPredicate(Class clazz) { Assert.isTrue(Person.class == clazz); }
From source file:com.aaj.frontend.bu.UserManagerTest.java
@Test public void test2() { log.info("starting test2 ..."); Assert.isTrue(Boolean.TRUE); }
From source file:walkAlong.TrueFalseTest.java
@Test public void getAnswerTF() { Assert.isTrue(objTF.theAnswerWas()); }
From source file:org.arrow.test.WorkflowTestUtils.java
/** * Asserts whether all BPMN entities of the given {@link ProcessInstance} * has the state 'SUCCESS'./*from w ww .ja v a 2 s . co m*/ * * @param execRepo * @param pi */ public static void assertSuccessState(ExecutionRepository execRepo, ProcessInstance pi) { Set<Execution> executions = execRepo.findByProcessInstance(pi); Assert.notNull(executions); for (Execution execution : executions) { State state = execution.getState(); Assert.isTrue(State.SUCCESS.compareTo(state) == 0); } }
From source file:org.opencredo.demos.twityourl.TextStatistics.java
public TextStatistics(String text, long total) { Assert.hasText(text); Assert.isTrue(total >= 0); this.total = total; this.text = text; }