@Test public void excludedTypesPojo() throws IOException { ConfigurationMetadata metadata = compile(ExcludedTypesPojo.class); assertThat(metadata).has(Metadata.withProperty("excluded.name")); assertThat(metadata).isNotEqualTo(Metadata.withProperty("excluded.class-loader")); assertThat(metadata).isNotEqualTo(Metadata.withProperty("excluded.data-source")); assertThat(metadata).isNotEqualTo(Metadata.withProperty("excluded.print-writer")); assertThat(metadata).isNotEqualTo(Metadata.withProperty("excluded.writer")); assertThat(metadata).isNotEqualTo(Metadata.withProperty("excluded.writer-array")); }
@Test public void excludedTypesPojo() throws IOException { ConfigurationMetadata metadata = compile(ExcludedTypesPojo.class); assertThat(metadata, containsProperty("excluded.name")); assertThat(metadata, not(containsProperty("excluded.class-loader"))); assertThat(metadata, not(containsProperty("excluded.data-source"))); assertThat(metadata, not(containsProperty("excluded.print-writer"))); assertThat(metadata, not(containsProperty("excluded.writer"))); assertThat(metadata, not(containsProperty("excluded.writer-array"))); }