@Test public void menuContributionAddedToSourceMenu() { SourceContextMenu sourceContextMenu = eclipse .openClass( JAVA_PROJECT_NAME, JAVA_SOURCE_FOLDER_NAME, JAVA_PACKAGE_NAME, JAVA_CLASS_NAME) .sourceContextMenu(); assertThat(sourceContextMenu.containsGenerateBuilder()).isTrue(); }
@Test public void menuContributionAddedToSourceMenuAfterGenerateConstructorsFromSuperClass() { SourceContextMenu sourceContextMenu = eclipse .openClass( JAVA_PROJECT_NAME, JAVA_SOURCE_FOLDER_NAME, JAVA_PACKAGE_NAME, JAVA_CLASS_NAME) .sourceContextMenu(); assertThat(sourceContextMenu.isGenerateBuilderAddedAfterGenerateConstructorsFromSuperClass()) .isTrue(); }