Package io.druid.indexing.overlord.setup

Examples of io.druid.indexing.overlord.setup.GalaxyEC2UserData.withVersion()


    final String json = "{\"env\":\"druid\",\"version\":null,\"type\":\"typical\"}";
    final GalaxyEC2UserData userData = (GalaxyEC2UserData) TestUtils.MAPPER.readValue(json, EC2UserData.class);
    Assert.assertEquals("druid", userData.getEnv());
    Assert.assertEquals("typical", userData.getType());
    Assert.assertNull(userData.getVersion());
    Assert.assertEquals("1234", userData.withVersion("1234").getVersion());
  }

  @Test
  public void testStringEC2UserDataSerde() throws IOException
  {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.