List of usage examples for java.lang Boolean FALSE
Boolean FALSE
To view the source code for java.lang Boolean FALSE.
Click Source Link
From source file:com.adaptris.core.ftp.AggregatingFtpConsumerTest.java
public void testDeleteAggregatedFiles() throws Exception { AggregatingFtpConsumer consumer = new AggregatingFtpConsumer(); assertTrue(consumer.deleteAggregatedFiles()); assertNull(consumer.getDeleteAggregatedFiles()); consumer.setDeleteAggregatedFiles(Boolean.FALSE); assertNotNull(consumer.getDeleteAggregatedFiles()); assertFalse(consumer.deleteAggregatedFiles()); }
From source file:net.diogobohm.timed.impl.ui.daytasklist.DayTaskListModel.java
public DayTaskListModel() { currentDayHolder = new NewTypedValueModel(); expandedHolder = new NewTypedValueModel(Boolean.FALSE); expandIconHolder = new NewTypedValueModel(ImageResource.ICON_EXPAND); dayWorkedTimeHolder = new NewTypedValueModel(); dateNameHolder = new NewTypedValueModel(); dateHolder = new NewTypedValueModel(); }
From source file:uk.ac.aber.raf8.mmp.core.jobs.YQLCacheSectorsQueryJob.java
@Override protected void executeInternal(final JobExecutionContext jobExecutionContext) throws JobExecutionException { Boolean success = Boolean.FALSE; Integer tries = 0;/*from ww w . ja va 2 s .c om*/ while (!success && tries < MAX_TRIES) { try { YQLQueryCache.getInstance() .setYQLSectorsQueryModel(YQLService.getInstance().getYQLSectorsQueryModel()); success = Boolean.TRUE; } catch (final Exception e) { e.printStackTrace(); tries++; try { Thread.sleep(DELAY_BETWEEN_TRIES); } catch (final InterruptedException e1) { e1.printStackTrace(); } } } }
From source file:com.github.sebhoss.contract.verifier.JEXLContractContext.java
@Override public boolean isInViolationWith(final Clause clause) { final Expression expression = jexlEngine.createExpression(clause.value()); final Object contractValidated = expression.evaluate(jexlContext); return Boolean.FALSE.equals(contractValidated); }
From source file:za.co.dwarfsun.jcmanager.test.repository.JobInfoRepositoryTest.java
@Test(enabled = true) public void createJobInfo() { repo = ctx.getBean(JobInfoRepository.class); JobInfo jobInfo = new JobInfo.Builder("Test Information").complete(Boolean.FALSE).status("Unallocated") .build();//from w ww .jav a 2 s .c o m repo.save(jobInfo); id = jobInfo.getId(); Assert.assertNotNull(jobInfo); }
From source file:ch.rasc.edsutil.bean.ExtDirectStoreValidationResult.java
public void setValidations(List<ValidationError> validations) { this.validations = validations; if (this.validations != null && !this.validations.isEmpty()) { setSuccess(Boolean.FALSE); }/*from w w w . ja v a 2s . co m*/ }
From source file:net.heartsome.license.webservice.ServiceUtilTest.java
public static IService getService() throws MalformedURLException { // Service srvcModel = new // ObjectServiceFactory().create(IService.class); // XFireProxyFactory factory = new XFireProxyFactory(XFireFactory // .newInstance().getXFire()); ///*from ww w . j av a 2 s .c o m*/ // IService srvc = (IService) factory.create(srvcModel, // Constants.CONNECT_URL); // return srvc; ProtocolSocketFactory easy = new EasySSLProtocolSocketFactory(); Protocol protocol = new Protocol(HTTP_TYPE, easy, PORT); Protocol.registerProtocol(HTTP_TYPE, protocol); Service serviceModel = new ObjectServiceFactory().create(IService.class, SERVICE_NAME, SERVICE_NAMESPACE, null); IService service = (IService) new XFireProxyFactory().create(serviceModel, SERVICE_URL); Client client = ((XFireProxy) Proxy.getInvocationHandler(service)).getClient(); client.addOutHandler(new DOMOutHandler()); client.setProperty(CommonsHttpMessageSender.GZIP_ENABLED, Boolean.FALSE); client.setProperty(CommonsHttpMessageSender.DISABLE_EXPECT_CONTINUE, "1"); client.setProperty(CommonsHttpMessageSender.HTTP_TIMEOUT, "0"); return service; }
From source file:org.yamj.api.trakttv.TestLogger.java
public static boolean configure(String level) { StringBuilder config = new StringBuilder("handlers = java.util.logging.ConsoleHandler\n"); config.append(".level = ").append(level).append(CRLF); config.append("java.util.logging.ConsoleHandler.level = ").append(level).append(CRLF); // Only works with Java 7 or later config.append("java.util.logging.SimpleFormatter.format = [%1$tH:%1$tM:%1$tS %4$6s] %2$s - %5$s %6$s%n") .append(CRLF);//from w w w .j av a 2 s. c o m // Exclude http logging config.append("sun.net.www.protocol.http.HttpURLConnection.level = OFF").append(CRLF); config.append("org.apache.http.level = SEVERE").append(CRLF); try (InputStream ins = new ByteArrayInputStream(config.toString().getBytes())) { LogManager.getLogManager().readConfiguration(ins); } catch (IOException e) { LOG.warn("Failed to configure log manager due to an IO problem", e); return Boolean.FALSE; } LOG.debug("Logger initialized to '{}' level", level); return Boolean.TRUE; }
From source file:com.ibm.watson.app.common.util.rest.BooleanResponseHandler.java
@Override public Boolean getDefaultReturnValue() { // By default, under any error, we return false return Boolean.FALSE; }
From source file:org.apache.camel.component.http4.HttpEntityConverter.java
private static HttpEntity asHttpEntity(InputStream in, Exchange exchange) throws IOException { InputStreamEntity entity;/*from w ww .ja va 2 s . c o m*/ if (!exchange.getProperty(Exchange.SKIP_GZIP_ENCODING, Boolean.FALSE, Boolean.class)) { String contentEncoding = exchange.getIn().getHeader(Exchange.CONTENT_ENCODING, String.class); InputStream stream = GZIPHelper.compressGzip(contentEncoding, in); entity = new InputStreamEntity(stream, stream instanceof ByteArrayInputStream ? stream.available() != 0 ? stream.available() : -1 : -1); } else { entity = new InputStreamEntity(in, -1); } if (exchange != null) { String contentEncoding = exchange.getIn().getHeader(Exchange.CONTENT_ENCODING, String.class); String contentType = ExchangeHelper.getContentType(exchange); entity.setContentEncoding(contentEncoding); entity.setContentType(contentType); } return entity; }