APISonar


org.elasticsearch.Build.CURRENT.date

> org > elasticsearch > Build > CURRENT > date
org APIs elasticsearch APIs Build APIs CURRENT APIs date APIs

Example 1
private void runTestThatVersionIsReturned(String... args) throws Exception {
        runTestVersion(ExitCodes.OK, output -> {
            assertThat(output, containsString("Version: " + Build.CURRENT.getQualifiedVersion()));
            final String expectedBuildOutput = String.format(
                    Locale.ROOT,
                    "Build: %s/%s/%s/%s",
                    Build.CURRENT.flavor().displayName(),
                    Build.CURRENT.type().displayName(),
                    Build.CURRENT.shortHash(),
                    Build.CURRENT.date());
            assertThat(output, containsString(expectedBuildOutput));
            assertThat(output, containsString("JVM: " + JvmInfo.jvmInfo().version()));
        }, args);
    }