SkinLayoutDefinition { @Nullable public String get(@NotNull String queryString) { return get(Splitter.on(ourQuerySeparator).split(queryString).iterator()); } private  SkinLayoutDefinition(); @Nullable static SkinLayoutDefinition parseFile(@NotNull File file, @NotNull FileOp fop); @Nullable String get(@NotNull String queryString); @Override String toString();  }
@Test public void testNonExistentKeys() throws Exception { Assert.assertNull(mySkinLayoutDefinition.get("foo")); Assert.assertNull(mySkinLayoutDefinition.get("layouts.bar")); Assert.assertNull(mySkinLayoutDefinition.get("layouts.portrait.zzz")); Assert.assertNull(mySkinLayoutDefinition.get("layouts.portrait.width.foo")); }
@Test public void testIncompleteKeys() throws Exception { Assert.assertNull(mySkinLayoutDefinition.get("layouts")); Assert.assertNull(mySkinLayoutDefinition.get("layouts.portrait")); }
@Test public void testCompleteKeys() throws Exception { Assert.assertEquals("device", mySkinLayoutDefinition.get("layouts.portrait.part2.name")); Assert.assertEquals("30", mySkinLayoutDefinition.get("layouts.portrait.part2.x")); Assert.assertEquals("0", mySkinLayoutDefinition.get("layouts.portrait.part3.y")); Assert.assertEquals("100", mySkinLayoutDefinition.get("layouts.portrait.onion.alpha")); }