diff --git a/automatic_test/GUI/examples/.classpath b/automatic_test/GUI/examples/.classpath deleted file mode 100644 index 936e3a4cc20348b247de0e23b452f0da927da330..0000000000000000000000000000000000000000 --- a/automatic_test/GUI/examples/.classpath +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" output="target/classes" path="src/main/java"> - <attributes> - <attribute name="optional" value="true"/> - <attribute name="maven.pomderived" value="true"/> - </attributes> - </classpathentry> - <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> - <attributes> - <attribute name="maven.pomderived" value="true"/> - </attributes> - </classpathentry> - <classpathentry kind="src" output="target/test-classes" path="src/test/java"> - <attributes> - <attribute name="test" value="true"/> - <attribute name="optional" value="true"/> - <attribute name="maven.pomderived" value="true"/> - </attributes> - </classpathentry> - <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> - <attributes> - <attribute name="test" value="true"/> - <attribute name="maven.pomderived" value="true"/> - </attributes> - </classpathentry> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-11-openjdk-amd64"> - <attributes> - <attribute name="module" value="true"/> - <attribute name="maven.pomderived" value="true"/> - </attributes> - </classpathentry> - <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> - <attributes> - <attribute name="maven.pomderived" value="true"/> - </attributes> - </classpathentry> - <classpathentry kind="output" path="target/classes"/> -</classpath> diff --git a/automatic_test/GUI/examples/.project b/automatic_test/GUI/examples/.project deleted file mode 100644 index 2811b9b1d39e8755a216ee1f2aae099fc05778a3..0000000000000000000000000000000000000000 --- a/automatic_test/GUI/examples/.project +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>SwingTest</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.m2e.core.maven2Builder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.m2e.core.maven2Nature</nature> - </natures> -</projectDescription> diff --git a/automatic_test/GUI/examples/.settings/org.eclipse.jdt.core.prefs b/automatic_test/GUI/examples/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 8445b6b1e0a64cdb5d1f4abd4e8972f5fb75cafe..0000000000000000000000000000000000000000 --- a/automatic_test/GUI/examples/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,13 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=1.8 diff --git a/automatic_test/GUI/examples/.settings/org.eclipse.m2e.core.prefs b/automatic_test/GUI/examples/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2389f85fe6381425d29f0a9866fb65..0000000000000000000000000000000000000000 --- a/automatic_test/GUI/examples/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/automatic_test/GUI/examples/pom.xml b/automatic_test/GUI/examples/pom.xml deleted file mode 100644 index 7af0de9564fa0b8ef99cd7d8309d15b78e331605..0000000000000000000000000000000000000000 --- a/automatic_test/GUI/examples/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ -<!-- -/* - * This pom file was generated by Eclipse during the creation of this part of the project. - * - * This file contains dependencies for the project in order to use AssertJ - * for the swing part. - * For more details take a look at the AssertJ website - * available at http://joel-costigliola.github.io/assertj/assertj-swing.html - */ - --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>swing.test</groupId> - <artifactId>SwingTest</artifactId> - <version>0.0.1-SNAPSHOT</version> - <name>swingtest</name> - - <dependencies> - <dependency> - <groupId>org.assertj</groupId> - <artifactId>assertj-swing-junit</artifactId> - <version>3.8.0</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.assertj</groupId> - <artifactId>assertj-swing-jide</artifactId> - <version>3.8.0</version> - <scope>test</scope> - </dependency> - </dependencies> - -</project> \ No newline at end of file diff --git a/automatic_test/GUI/examples/src/main/java/swing/test/main/Main.java b/automatic_test/GUI/examples/src/main/java/swing/test/main/Main.java deleted file mode 100644 index 262c044c3f2ac0ef72a8ffad10daf916f660693b..0000000000000000000000000000000000000000 --- a/automatic_test/GUI/examples/src/main/java/swing/test/main/Main.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright or (C) or Copr. GET / ENST, Telecom-Paris, Arthur VUAGNIAUX - * - * Simple example with two buttons and one text area, - * in order to make a simple example to test. - */ - -package swing.test.main; - -import static javax.swing.SwingUtilities.invokeAndWait; - -import java.awt.Color; -import java.lang.reflect.InvocationTargetException; - -import javax.swing.JButton; -import javax.swing.JFrame; -import javax.swing.JTextArea; -import javax.swing.JTextField; - -/* - * Class Main - * Creation: 05/10/2018 - * @version 1.0 05/10/2018 - * @author Arthur VUAGNIAUX -*/ - -public class Main extends JFrame { - private static final long serialVersionUID = 1L; - - public Main() { - - this.setSize(400, 400); - - JButton button1 = new JButton("Button1"); - button1.setName("Button1"); - button1.setBounds(50,50,100,50); - - JButton button2 = new JButton("ButtonRed"); - button2.setName("ButtonRed"); - button2.setBackground(Color.red); - button2.setForeground(Color.black); - button2.setVisible(true); - button2.setBounds(50,100,100,50); - - JTextArea text = new JTextArea(); - text.setName("TestArea"); - text.setBounds(200,65,100,50); - - this.add(text); - this.add(button1); - this.add(button2); - - this.setLayout(null); - this.setVisible(true); - } -} diff --git a/automatic_test/GUI/examples/src/test/java/swing/test/main/MainTest.java b/automatic_test/GUI/examples/src/test/java/swing/test/main/MainTest.java deleted file mode 100644 index 2cdc250cccee21eac815ef2a36d1ab5b5864786d..0000000000000000000000000000000000000000 --- a/automatic_test/GUI/examples/src/test/java/swing/test/main/MainTest.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright or (C) or Copr. GET / ENST, Telecom-Paris, Arthur VUAGNIAUX - * - * Test part of Main with AssertJ framework - */ - -package swing.test.main; - -import static org.junit.Assert.*; - -import java.awt.Color; -import java.awt.event.KeyEvent; - -import org.assertj.swing.edt.GuiActionRunner; -import org.assertj.swing.fixture.FrameFixture; -import org.assertj.swing.fixture.JButtonFixture; -import org.assertj.swing.fixture.JTextComponentFixture; -import org.assertj.swing.junit.testcase.AssertJSwingJUnitTestCase; -import org.junit.Test; - -/* - * Class MainTest - * Creation: 05/10/2018 - * @version 1.0 05/10/2018 - * @author Arthur VUAGNIAUX -*/ - -public class MainTest extends AssertJSwingJUnitTestCase { - private FrameFixture window; - private int[] keyboard = { KeyEvent.VK_S, KeyEvent.VK_O, KeyEvent.VK_G, KeyEvent.VK_E }; - private int[] keyboardother = { KeyEvent.VK_0, KeyEvent.VK_SEMICOLON, - KeyEvent.VK_BACK_SLASH, KeyEvent.VK_BACK_QUOTE }; - - @Test - public void test() { - assertTrue(1 == 1); - } - - @Test - public void testArea() { - JTextComponentFixture testBox = window.textBox("TestArea"); - testBox.pressAndReleaseKeys(keyboard); - } - - @Test - public void testAreaBis() { - JTextComponentFixture testBox = window.textBox("TestArea"); - testBox.pressAndReleaseKeys(keyboardother); - } - - @Test - public void testButton1() { - JButtonFixture testButton = window.button("Button1"); - testButton.click(); - testButton.doubleClick(); - testButton.click(); - } - - @Test - public void testButtonRed() { - JButtonFixture testButton = window.button("ButtonRed"); - testButton.background().requireEqualTo(Color.red); - testButton.foreground().requireEqualTo(Color.black); - testButton.requireVisible(); - } - - @Override - protected void onSetUp() { - Main frame = GuiActionRunner.execute(()-> new Main()); - window = new FrameFixture(robot(), frame); - window.show(); // shows the frame to test - } - - @Override - protected void onTearDown() { - super.onTearDown(); - window.cleanUp(); - } -} diff --git a/automatic_test/GUI/examples/target/classes/swing/test/main/Main.class b/automatic_test/GUI/examples/target/classes/swing/test/main/Main.class deleted file mode 100644 index 23ce8ffca1cddcd46d10a119b456262c56631ffa..0000000000000000000000000000000000000000 Binary files a/automatic_test/GUI/examples/target/classes/swing/test/main/Main.class and /dev/null differ diff --git a/automatic_test/GUI/examples/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/automatic_test/GUI/examples/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/automatic_test/GUI/examples/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/automatic_test/GUI/examples/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst deleted file mode 100644 index a7c67a24af59861871785b8b782a21d48c651ea9..0000000000000000000000000000000000000000 --- a/automatic_test/GUI/examples/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ /dev/null @@ -1 +0,0 @@ -/home/soge/eclipse-workspace/SwingTest/src/main/java/swing/test/main/Main.java diff --git a/automatic_test/GUI/examples/target/test-classes/swing/test/main/MainTest.class b/automatic_test/GUI/examples/target/test-classes/swing/test/main/MainTest.class deleted file mode 100644 index 9969b423ee02619de8d767aeeb8bdbd5b562e267..0000000000000000000000000000000000000000 Binary files a/automatic_test/GUI/examples/target/test-classes/swing/test/main/MainTest.class and /dev/null differ diff --git a/automatic_test/GUI/README b/ttool/src/test/java/ui/bot/README similarity index 100% rename from automatic_test/GUI/README rename to ttool/src/test/java/ui/bot/README