package in.tombo.ponto;

import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;

import org.junit.Test;

public class PropertiesServiceTest {

  @Test
  public void testPropertiesService() {
    PropertiesService pService = new PropertiesService("hoge.moge", "dev",
        "test1.properties");
    assertThat(pService.getProperties("test.key"), is("devString"));
    assertThat(pService.getProperties("test.intkey.valid._int"), is("1234"));
    assertThat(pService.getProperties("test.longkey.valid._long"), is("23456"));
    assertThat(pService.getProperties("test.floatkey.valid._float"),
        is("1234.1234"));
  }

}

@@ -184,29 +184,22 @@
 oid 
-test
+useEnv
 Propert
-iesService
+y
 () %7B
@@ -446,24 +446,24 @@
 s(%221234%22));%0A
-
     assertTh
@@ -631,10 +631,488 @@
 );%0A  %7D%0A%0A
+  @Test%0A  public void useInvalidEnvProperty() %7B%0A    PropertiesService pService = new PropertiesService(%22hoge.moge%22, %22devo%22,%0A        %22test1.properties%22);%0A    assertThat(pService.getProperties(%22test.key%22), is(%22String%22));%0A    assertThat(pService.getProperties(%22test.intkey.valid._int%22), is(%221234%22));%0A    assertThat(pService.getProperties(%22test.longkey.valid._long%22), is(%2212345%22));%0A    assertThat(pService.getProperties(%22test.floatkey.valid._float%22),%0A        is(%221234.1234%22));%0A  %7D%0A%0A
 %7D%0A

add test.