|
From: <jm...@us...> - 2010-03-15 14:28:40
|
Revision: 1310
http://eulergui.svn.sourceforge.net/eulergui/?rev=1310&view=rev
Author: jmvanel
Date: 2010-03-15 14:28:26 +0000 (Mon, 15 Mar 2010)
Log Message:
-----------
Made a test to capture this regression:
empty project ==> add source N3 ==> the hyperlink does not appear
==> Save the project ==> re-open the project ==> it appears
Alas the test passes ! the new button is here and active but not really visible !!
Added Paths:
-----------
trunk/eulergui/src/test/java/eulergui/gui/TestN3Source.java
Added: trunk/eulergui/src/test/java/eulergui/gui/TestN3Source.java
===================================================================
--- trunk/eulergui/src/test/java/eulergui/gui/TestN3Source.java (rev 0)
+++ trunk/eulergui/src/test/java/eulergui/gui/TestN3Source.java 2010-03-15 14:28:26 UTC (rev 1310)
@@ -0,0 +1,33 @@
+package eulergui.gui;
+
+import org.netbeans.jemmy.operators.JButtonOperator;
+import org.netbeans.jemmy.operators.JFileChooserOperator;
+import org.netbeans.jemmy.operators.JFrameOperator;
+
+/** test N3 source manipulations */
+public class TestN3Source extends TestJemmy {
+
+// private static final String NEW_SOURCE_N3 = "new source.n3";
+ private static final String NEW_SOURCE_N3 = "new_source.n3";
+
+ public void testAddNewN3Source() throws Exception {
+
+ launchEulerGUIWithArgument( "test/empty_project.n3p" ); // NEW_SOURCE_N3 + "p" ); // new project.n3p" );
+ new JButtonOperator( mainFrame,
+ new ActionNAMEComponentChooser(
+ "Add N3", true ) )
+ .push();
+ JFileChooserOperator fileChooser = new JFileChooserOperator();
+ fileChooser.chooseFile(NEW_SOURCE_N3);
+ JButtonOperator button_operator = new JButtonOperator( mainFrame, "./" + NEW_SOURCE_N3 );
+ button_operator.push();
+
+// JFrameOperator editorFrame =
+ new JFrameOperator(1);
+
+ assertTrue( "button_operator.isValid()", button_operator.isValid() );
+ assertTrue( "button_operator.isVisible()", button_operator.isVisible() );
+ assertTrue( "button_operator.isShowing()", button_operator.isShowing() );
+
+ }
+}
Property changes on: trunk/eulergui/src/test/java/eulergui/gui/TestN3Source.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|