Java Examples for org.assertj.maven.test2.adress.Address
The following java examples will help you to understand the usage of org.assertj.maven.test2.adress.Address. These source code samples are taken from different open source projects.
Example 1
| Project: assertj-assertions-generator-maven-plugin-master File: AssertJAssertionsGeneratorMojoTest.java View source code |
@Test
public void executing_plugin_with_classes_and_packages_parameter_only_should_pass() throws Exception {
assertjAssertionsGeneratorMojo.packages = array("org.assertj.maven.test", "org.assertj.maven.test2");
assertjAssertionsGeneratorMojo.classes = array("org.assertj.maven.test.Employee");
List<String> classes = newArrayList(Employee.class.getName(), Address.class.getName());
when(mavenProject.getCompileClasspathElements()).thenReturn(classes);
assertjAssertionsGeneratorMojo.execute();
// check that expected assertions file exist (we don't check the content we suppose the generator works).
assertThat(assertionsFileFor(Employee.class)).exists();
assertThat(assertionsFileFor(Address.class)).exists();
assertThat(assertionsEntryPointFile("Assertions.java")).exists();
assertThat(assertionsEntryPointFile("BddAssertions.java")).exists();
assertThat(assertionsEntryPointFile("SoftAssertions.java")).exists();
}