@Test public void defaultAbsent() throws Exception { Assert.assertFalse("by default there is no data - returns absent", defaultCompileTimeGlobalModelResolver.resolveData().isPresent()); }
@Override public Optional<SoyMapData> resolveData() { if (data == null || data.isEmpty()) { return Optional.absent(); } return Optional.of(new SoyMapData(data)); }
DefaultCompileTimeGlobalModelResolver implements CompileTimeGlobalModelResolver { @Override public Optional<SoyMapData> resolveData() { if (data == null || data.isEmpty()) { return Optional.absent(); } return Optional.of(new SoyMapData(data)); } }
DefaultCompileTimeGlobalModelResolver implements CompileTimeGlobalModelResolver { @Override public Optional<SoyMapData> resolveData() { if (data == null || data.isEmpty()) { return Optional.absent(); } return Optional.of(new SoyMapData(data)); }  }
DefaultCompileTimeGlobalModelResolver implements CompileTimeGlobalModelResolver { @Override public Optional<SoyMapData> resolveData() { if (data == null || data.isEmpty()) { return Optional.absent(); } return Optional.of(new SoyMapData(data)); }  @Override Optional<SoyMapData> resolveData(); void setData(final Map data); void setProperties(final Properties properties); }
DefaultCompileTimeGlobalModelResolver implements CompileTimeGlobalModelResolver { @Override public Optional<SoyMapData> resolveData() { if (data == null || data.isEmpty()) { return Optional.absent(); } return Optional.of(new SoyMapData(data)); }  @Override Optional<SoyMapData> resolveData(); void setData(final Map data); void setProperties(final Properties properties);  }