io.vertx.core.impl.launcher.commands.VersionCommand Java Examples
The following examples show how to use
io.vertx.core.impl.launcher.commands.VersionCommand.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VertxStacksTest.java From vertx-stack with Apache License 2.0 | 5 votes |
@Before public void setUp() { FileUtils.delete(root); Awaitility.await().atMost(10, TimeUnit.SECONDS).until(() -> !root.exists()); String vertxVersion = new VersionCommand().getVersion(); assertThat(vertxVersion).isNotEmpty(); System.setProperty("vertx.version", vertxVersion); }
Example #2
Source File: WebClientOptions.java From vertx-web with Apache License 2.0 | 5 votes |
public static String loadUserAgent() { String userAgent = "Vert.x-WebClient"; String version = VersionCommand.getVersion(); if (version.length() > 0) { userAgent += "/" + version; } return userAgent; }
Example #3
Source File: WebClientOptionsTest.java From vertx-web with Apache License 2.0 | 5 votes |
@Test public void testFromJson() { JsonObject json = new JsonObject() .put("defaultPort", 4848) .put("userAgentEnabled", false) .put("maxPoolSize", 50); WebClientOptions options = new WebClientOptions(json); assertEquals(4848, options.getDefaultPort()); assertFalse(options.isUserAgentEnabled()); assertEquals("Vert.x-WebClient/" + VersionCommand.getVersion(), options.getUserAgent()); assertEquals(50, options.getMaxPoolSize()); }
Example #4
Source File: ApimanVersionCommand.java From apiman with Apache License 2.0 | 4 votes |
@Override public void run() throws CLIException { log.info("Apiman " + getApimanVersion()); log.info("Vert.x " + VersionCommand.getVersion()); }