@Test public void asList_missingProperty() { List<String> result = underTest.asList(); assertThat(result, notNullValue()); assertThat(result, empty()); }
public List<String> asList() { String value = get(); if (value == null) { return Collections.emptyList(); } String[] items = value.split(","); List<String> result = Lists.newArrayListWithCapacity(items.length); for (String item : items) { result.add(item.trim()); } return result; }
SystemProperty { public List<String> asList() { String value = get(); if (value == null) { return Collections.emptyList(); } String[] items = value.split(","); List<String> result = Lists.newArrayListWithCapacity(items.length); for (String item : items) { result.add(item.trim()); } return result; } }
SystemProperty { public List<String> asList() { String value = get(); if (value == null) { return Collections.emptyList(); } String[] items = value.split(","); List<String> result = Lists.newArrayListWithCapacity(items.length); for (String item : items) { result.add(item.trim()); } return result; } SystemProperty(final String name);  SystemProperty(final Class type, final String suffix); }
SystemProperty { public List<String> asList() { String value = get(); if (value == null) { return Collections.emptyList(); } String[] items = value.split(","); List<String> result = Lists.newArrayListWithCapacity(items.length); for (String item : items) { result.add(item.trim()); } return result; } SystemProperty(final String name);  SystemProperty(final Class type, final String suffix); String name(); void set(final @Nullable Object value); boolean isSet(); @Nullable String get(); String get(final String defaultValue); @Nullable @SuppressWarnings("unchecked") T get(final Class<T> type); T get(final Class<T> type, final T defaultValue); void remove(); List<String> asList(); @Override String toString(); }
SystemProperty { public List<String> asList() { String value = get(); if (value == null) { return Collections.emptyList(); } String[] items = value.split(","); List<String> result = Lists.newArrayListWithCapacity(items.length); for (String item : items) { result.add(item.trim()); } return result; } SystemProperty(final String name);  SystemProperty(final Class type, final String suffix); String name(); void set(final @Nullable Object value); boolean isSet(); @Nullable String get(); String get(final String defaultValue); @Nullable @SuppressWarnings("unchecked") T get(final Class<T> type); T get(final Class<T> type, final T defaultValue); void remove(); List<String> asList(); @Override String toString();  }