forked from devonfw/cobigen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devonfw#1454 Possible to open GUI through Eclipse Plugin; Window Titl…
…e & Icon added
- Loading branch information
Showing
16 changed files
with
135 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...ipse/cobigen-eclipse-test/src/main/java/com/devonfw/cobigen/eclipse/test/OpenGUITest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package com.devonfw.cobigen.eclipse.test; | ||
|
||
import java.io.File; | ||
|
||
import org.apache.commons.io.FileUtils; | ||
import org.eclipse.core.resources.IResource; | ||
import org.eclipse.core.runtime.NullProgressMonitor; | ||
import org.eclipse.jdt.core.IJavaProject; | ||
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import com.devonfw.cobigen.eclipse.test.common.SystemTest; | ||
import com.devonfw.cobigen.eclipse.test.common.utils.EclipseCobiGenUtils; | ||
import com.devonfw.cobigen.eclipse.test.common.utils.EclipseUtils; | ||
|
||
/** | ||
* Class for testing Manage Template Sets with a click on the Home Button | ||
* | ||
*/ | ||
@RunWith(SWTBotJunit4ClassRunner.class) | ||
public class OpenGUITest extends SystemTest { | ||
|
||
/** Root path of the Test Resources */ | ||
private static final String resourcesRootPath = "src/main/resources/OpenAPITest/"; | ||
|
||
/** | ||
* Setup workbench appropriately for tests | ||
* | ||
* @throws Exception test fails | ||
*/ | ||
@BeforeClass | ||
public static void setupClass() throws Exception { | ||
|
||
EclipseUtils.cleanWorkspace(bot, true); | ||
} | ||
|
||
/** | ||
* Testing to open the Template Set Management GUI and clicking Home Button | ||
* | ||
* @throws Exception test fails | ||
*/ | ||
@Test | ||
public void testOpenTemplateSetManagementGUI() throws Exception { | ||
|
||
// copy sample project to external location and import it into the workspace | ||
String testProjName = "ExtTestProj"; | ||
IJavaProject project = this.tmpMavenProjectRule.createProject(testProjName); | ||
FileUtils.copyFile(new File(resourcesRootPath + "input/adapt-templates.yml"), | ||
project.getUnderlyingResource().getLocation().append("adapt-templates.yml").toFile()); | ||
project.getProject().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor()); | ||
this.tmpMavenProjectRule.updateProject(); | ||
|
||
// open GUI | ||
EclipseCobiGenUtils.runAndCaptureManageTemplateSets(bot); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+12.3 KB
cobigen-gui/gui/src/main/resources/com/devonfw/cobigen/gui/icons/devon-icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.