Example usage for java.util Locale ENGLISH

List of usage examples for java.util Locale ENGLISH

Introduction

In this page you can find the example usage for java.util Locale ENGLISH.

Prototype

Locale ENGLISH

To view the source code for java.util Locale ENGLISH.

Click Source Link

Document

Useful constant for language.

Usage

From source file:at.ac.univie.isc.asio.spring.ApplicationRunner.java

public ApplicationRunner run(final String... args) {
    assert context == null : "application already started";
    context = builder.showBanner(false).run(args);
    Unchecked.sleep(100, TimeUnit.MILLISECONDS); // brief pause to allow initialization to complete
    System.out.printf(Locale.ENGLISH, ">> running application [%s (%s)]%n", context.getId(), context);
    return this;
}

From source file:net.sf.dynamicreports.test.jasper.chart.StackedBar3DChartTest.java

@Override
protected void configureReport(JasperReportBuilder rb) {
    TextColumnBuilder<String> column1;
    TextColumnBuilder<Integer> column2;

    Locale.setDefault(Locale.ENGLISH);

    rb.columns(column1 = col.column("Column1", "field1", String.class),
            column2 = col.column("Column2", "field2", Integer.class))
            .summary(/*from   w  w  w.j  a v a 2s  .  c o m*/
                    cht.stackedBar3DChart().setCategory(column1).series(cht.serie(column2)).setShowLabels(true)
                            .setXOffset(2d).setYOffset(3d),
                    cht.stackedBar3DChart().setCategory(column1).series(cht.serie(column2))
                            .setCategoryAxisFormat(cht.axisFormat().setLabel("category")
                                    .setLabelColor(Color.BLUE).setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelRotation(45d)
                                    .setLineColor(Color.LIGHT_GRAY)),
                    cht.stackedBar3DChart().setCategory(column1).series(cht.serie(column2))
                            .setValueAxisFormat(cht.axisFormat().setLabel("value").setLabelColor(Color.BLUE)
                                    .setLabelFont(stl.fontArialBold())
                                    .setTickLabelFont(stl.fontArial().setItalic(true))
                                    .setTickLabelColor(Color.CYAN).setTickLabelMask("#,##0.00")
                                    .setLineColor(Color.LIGHT_GRAY).setRangeMinValueExpression(1)
                                    .setRangeMaxValueExpression(15)));
}

From source file:com.callidusrobotics.droptables.view.ResultListViewTest.java

@Test
public void renderFreeMarkerSuccess() throws Exception {
    // Unit under test
    renderer.render(view, Locale.ENGLISH, writer);

    // Verify results
    String result = writer.toString();

    assertEquals("Exactly 1 ReportLog should have a null TTL", 1, StringUtils.countMatches(result,
            "These results will not be scheduled for deletion from the database"));
    for (int i = 0; i < results.size(); i++) {
        ResultEntry entry = results.get(i);

        assertTrue("Report ID field was not set for #" + i,
                result.contains(entry.getReport() == null ? "DELETED" : entry.getReport().getId().toString()));
        assertTrue("ID field was not set for #" + i, result.contains(entry.getId().toString()));

        for (Entry<String, String> kv : entry.getParameters().entrySet()) {
            assertTrue("Parameter Key was not set for #" + i, result.contains(kv.getKey()));
            assertTrue("Parameter Val was not set for #" + i, result.contains(kv.getValue()));
        }/*from  w  w w . j  a v a  2s .c  o  m*/
    }
}

From source file:ch.ralscha.extdirectspring.provider.RemoteProviderStoreModify.java

@ExtDirectMethod(value = ExtDirectMethodType.STORE_MODIFY)
public List<Row> update2(Locale locale, @RequestParam(value = "id") int id, List<Row> rows) {
    assertThat(id).isEqualTo(10);//  ww  w  .  j  av a  2s  . com
    assertThat(locale).isEqualTo(Locale.ENGLISH);
    return rows;
}

From source file:cz.muni.fi.pa165.rest.layer.RootWebContext.java

@Bean
@Primary/* w  ww .  j a v  a 2  s . co m*/
public MappingJackson2HttpMessageConverter customJackson2HttpMessageConverter() {
    MappingJackson2HttpMessageConverter jsonConverter = new MappingJackson2HttpMessageConverter();
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
    objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.ENGLISH));
    objectMapper.disable(MapperFeature.DEFAULT_VIEW_INCLUSION);
    jsonConverter.setObjectMapper(objectMapper);
    return jsonConverter;
}

From source file:com.wealdtech.jackson.LcStrategy.java

public String translate(final String propertyName) {
    return propertyName.toLowerCase(Locale.ENGLISH);
}

From source file:com.avast.server.hdfsshell.ui.ShellPromptProvider.java

public void setPs1(String ps1) {
    simpleBashPromptInterpreter = new SimpleBashPromptInterpreter.Builder(ps1).setAppName(() -> "hdfs-shell")
            .setAppVersion(ShellBannerProvider::versionInfo).setLocale(Locale.ENGLISH)
            .setUsername(this::getWhoami).setIsRoot(this::isRootPrompt)
            .setCwdAbsolut(contextCommands::getCurrentDir).setCwdShort(this::getShortCwd).build();
}

From source file:cz.cas.lib.proarc.common.workflow.FilterFindParameterQueryTest.java

@Test
public void testFilterNoDbParam() {
    List<TaskParameterView> params = Collections.emptyList();
    TaskParameterFilter filter = new TaskParameterFilter();
    filter.setTaskId(BigDecimal.TEN);
    filter.setLocale(Locale.ENGLISH);
    Task task = new Task();
    task.setTypeRef("task.id1");
    task.setId(filter.getTaskId());//from  w  w  w .j a v  a 2  s.  co  m
    List<TaskParameterView> result = new FilterFindParameterQuery(wp).filter(params, filter, task,
            wp.getProfiles());
    assertEquals(2, result.size());
    assertEquals("param.id1", result.get(0).getParamRef());
    assertEquals(DisplayType.TEXT, result.get(0).getDisplayType());
    assertEquals(task.getTypeRef(), result.get(0).getTaskProfileName());
    assertEquals(filter.getTaskId(), result.get(0).getTaskId());
}

From source file:com.facebook.share.internal.WebDialogParameters.java

public static Bundle create(GameRequestContent gameRequestContent) {
    Bundle webParams = new Bundle();

    Utility.putNonEmptyString(webParams, ShareConstants.WEB_DIALOG_PARAM_MESSAGE,
            gameRequestContent.getMessage());
    Utility.putNonEmptyString(webParams, ShareConstants.WEB_DIALOG_PARAM_TO, gameRequestContent.getTo());
    Utility.putNonEmptyString(webParams, ShareConstants.WEB_DIALOG_PARAM_TITLE, gameRequestContent.getTitle());
    Utility.putNonEmptyString(webParams, ShareConstants.WEB_DIALOG_PARAM_DATA, gameRequestContent.getData());
    if (gameRequestContent.getActionType() != null) {
        Utility.putNonEmptyString(webParams, ShareConstants.WEB_DIALOG_PARAM_ACTION_TYPE,
                gameRequestContent.getActionType().toString().toLowerCase(Locale.ENGLISH));
    }//from  w w  w  .j  a v a  2 s  .c om
    Utility.putNonEmptyString(webParams, ShareConstants.WEB_DIALOG_PARAM_OBJECT_ID,
            gameRequestContent.getObjectId());
    if (gameRequestContent.getFilters() != null) {
        Utility.putNonEmptyString(webParams, ShareConstants.WEB_DIALOG_PARAM_FILTERS,
                gameRequestContent.getFilters().toString().toLowerCase(Locale.ENGLISH));
    }
    Utility.putCommaSeparatedStringList(webParams, ShareConstants.WEB_DIALOG_PARAM_SUGGESTIONS,
            gameRequestContent.getSuggestions());
    return webParams;
}

From source file:com.ning.maven.plugins.dependencyversionscheck.strategy.DefaultStrategyProvider.java

public Strategy forName(final String name) {
    if (name == null) {
        return null;
    }//from w ww.j ava  2  s  .  c o m
    final Map strategies = getStrategies();
    return (Strategy) strategies.get(name.toLowerCase(Locale.ENGLISH));
}