JBoss Tools SVN: r41345 - trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2012-05-24 05:35:39 -0400 (Thu, 24 May 2012)
New Revision: 41345
Added:
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original/PolicyPricingProcess.bpmn
trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original/PolicyPricingProcess.bpmn_diagram
Log:
Added test processes for jbpm3 ui bot convert test update
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original/PolicyPricingProcess.bpmn
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original/PolicyPricingProcess.bpmn (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original/PolicyPricingProcess.bpmn 2012-05-24 09:35:39 UTC (rev 41345)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bpmn:BpmnDiagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:bpmn="http://stp.eclipse.org/bpmn" xmi:id="_1ZcdAVmhEd2P9rCHPooJgA" iD="_1ZcdAFmhEd2P9rCHPooJgA">
+ <pools xmi:type="bpmn:Pool" xmi:id="_1ZpRUVmhEd2P9rCHPooJgA" iD="_1ZpRUFmhEd2P9rCHPooJgA" name="Policy Pricing">
+ <artifacts xmi:type="bpmn:DataObject" xmi:id="_fliSgVmmEd2P9rCHPooJgA" iD="_fliSgFmmEd2P9rCHPooJgA" name="Driver">
+ <associations xmi:type="bpmn:Association" xmi:id="_iz_ykFmmEd2P9rCHPooJgA" target="_A-sB0FmiEd2P9rCHPooJgA"/>
+ </artifacts>
+ <artifacts xmi:type="bpmn:DataObject" xmi:id="_eFomAVmmEd2P9rCHPooJgA" iD="_eFomAFmmEd2P9rCHPooJgA" name="Policy">
+ <associations xmi:type="bpmn:Association" xmi:id="_iAHekFmmEd2P9rCHPooJgA" target="_A-sB0FmiEd2P9rCHPooJgA"/>
+ </artifacts>
+ <vertices xmi:type="bpmn:Activity" xmi:id="_1ZpRU1mhEd2P9rCHPooJgA" iD="_1ZpRUlmhEd2P9rCHPooJgA" outgoingEdges="_W_ip4VmiEd2P9rCHPooJgA" incomingEdges="_WBEPcVmiEd2P9rCHPooJgA" name="Price Policy" lanes="_GO-2wVmiEd2P9rCHPooJgA" activityType="Task"/>
+ <vertices xmi:type="bpmn:Activity" xmi:id="_A-sB0FmiEd2P9rCHPooJgA" iD="_A-rawFmiEd2P9rCHPooJgA" associations="_iAHekFmmEd2P9rCHPooJgA _iz_ykFmmEd2P9rCHPooJgA" outgoingEdges="_WBEPcVmiEd2P9rCHPooJgA" lanes="_HHcIwVmiEd2P9rCHPooJgA _GO-2wVmiEd2P9rCHPooJgA" activityType="EventStartMessage"/>
+ <vertices xmi:type="bpmn:Activity" xmi:id="_OwuOUVmiEd2P9rCHPooJgA" iD="_OwuOUFmiEd2P9rCHPooJgA" outgoingEdges="_h4ty4VmiEd2P9rCHPooJgA _kUIscVmiEd2P9rCHPooJgA" incomingEdges="_W_ip4VmiEd2P9rCHPooJgA" name=" Price Calculated ?" lanes="_GO-2wVmiEd2P9rCHPooJgA _HHcIwVmiEd2P9rCHPooJgA" activityType="GatewayDataBasedExclusive"/>
+ <vertices xmi:type="bpmn:Activity" xmi:id="_P2TWUVmiEd2P9rCHPooJgA" iD="_P2TWUFmiEd2P9rCHPooJgA" outgoingEdges="_lkjLcVmiEd2P9rCHPooJgA" incomingEdges="_kUIscVmiEd2P9rCHPooJgA" name="Review Pricing" lanes="_HHcIwVmiEd2P9rCHPooJgA"/>
+ <vertices xmi:type="bpmn:Activity" xmi:id="_ZxYfYVmiEd2P9rCHPooJgA" iD="_ZxYfYFmiEd2P9rCHPooJgA" incomingEdges="_h4ty4VmiEd2P9rCHPooJgA _lkjLcVmiEd2P9rCHPooJgA" lanes="_HHcIwVmiEd2P9rCHPooJgA _GO-2wVmiEd2P9rCHPooJgA" activityType="EventEndEmpty"/>
+ <sequenceEdges xmi:type="bpmn:SequenceEdge" xmi:id="_WBEPcVmiEd2P9rCHPooJgA" iD="_WBEPcFmiEd2P9rCHPooJgA" source="_A-sB0FmiEd2P9rCHPooJgA" target="_1ZpRU1mhEd2P9rCHPooJgA"/>
+ <sequenceEdges xmi:type="bpmn:SequenceEdge" xmi:id="_W_ip4VmiEd2P9rCHPooJgA" iD="_W_ip4FmiEd2P9rCHPooJgA" source="_1ZpRU1mhEd2P9rCHPooJgA" target="_OwuOUVmiEd2P9rCHPooJgA"/>
+ <sequenceEdges xmi:type="bpmn:SequenceEdge" xmi:id="_h4ty4VmiEd2P9rCHPooJgA" iD="_h4ty4FmiEd2P9rCHPooJgA" name="false" source="_OwuOUVmiEd2P9rCHPooJgA" target="_ZxYfYVmiEd2P9rCHPooJgA"/>
+ <sequenceEdges xmi:type="bpmn:SequenceEdge" xmi:id="_kUIscVmiEd2P9rCHPooJgA" iD="_kUIscFmiEd2P9rCHPooJgA" name="true" source="_OwuOUVmiEd2P9rCHPooJgA" target="_P2TWUVmiEd2P9rCHPooJgA"/>
+ <sequenceEdges xmi:type="bpmn:SequenceEdge" xmi:id="_lkjLcVmiEd2P9rCHPooJgA" iD="_lkjLcFmiEd2P9rCHPooJgA" source="_P2TWUVmiEd2P9rCHPooJgA" target="_ZxYfYVmiEd2P9rCHPooJgA"/>
+ <lanes xmi:type="bpmn:Lane" xmi:id="_GO-2wVmiEd2P9rCHPooJgA" iD="_GO-2wFmiEd2P9rCHPooJgA" name="services-lane" activities="_1ZpRU1mhEd2P9rCHPooJgA _OwuOUVmiEd2P9rCHPooJgA _A-sB0FmiEd2P9rCHPooJgA _ZxYfYVmiEd2P9rCHPooJgA"/>
+ <lanes xmi:type="bpmn:Lane" xmi:id="_HHcIwVmiEd2P9rCHPooJgA" iD="_HHcIwFmiEd2P9rCHPooJgA" name="loanprocessor" activities="_A-sB0FmiEd2P9rCHPooJgA _P2TWUVmiEd2P9rCHPooJgA _ZxYfYVmiEd2P9rCHPooJgA _OwuOUVmiEd2P9rCHPooJgA"/>
+ </pools>
+</bpmn:BpmnDiagram>
Added: trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original/PolicyPricingProcess.bpmn_diagram
===================================================================
--- trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original/PolicyPricingProcess.bpmn_diagram (rev 0)
+++ trunk/jbpm/tests/org.jboss.tools.jbpm.ui.bot.test/resources/original/PolicyPricingProcess.bpmn_diagram 2012-05-24 09:35:39 UTC (rev 41345)
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:bpmn="http://stp.eclipse.org/bpmn" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.1/notation" xmi:id="_1Ze5QFmhEd2P9rCHPooJgA" type="Bpmn" name="PolicyPricingProcess.bpmn_diagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Node" xmi:id="_1ZqfcFmhEd2P9rCHPooJgA" type="1001">
+ <children xmi:type="notation:Node" xmi:id="_1ZrGgFmhEd2P9rCHPooJgA" type="4008"/>
+ <children xmi:type="notation:Node" xmi:id="_1ZrtkFmhEd2P9rCHPooJgA" type="5001">
+ <children xmi:type="notation:Node" xmi:id="_1Zs7sFmhEd2P9rCHPooJgA" type="2001">
+ <children xmi:type="notation:Node" xmi:id="_1Zs7tlmhEd2P9rCHPooJgA" type="4001"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_1Zs7sVmhEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_1Zs7slmhEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_1Zs7s1mhEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_1Zs7tFmhEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Activity" href="PolicyPricingProcess.bpmn#_1ZpRU1mhEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1ZtiwFmhEd2P9rCHPooJgA" x="144" width="133" height="61"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_A-so4FmiEd2P9rCHPooJgA" type="2001">
+ <children xmi:type="notation:Node" xmi:id="_A-tP8FmiEd2P9rCHPooJgA" type="4001"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_A-so4VmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_A-so4lmiEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_A-so41miEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_A-so5FmiEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Activity" href="PolicyPricingProcess.bpmn#_A-sB0FmiEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_A-so5VmiEd2P9rCHPooJgA" x="16" y="80"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_GPAr8FmiEd2P9rCHPooJgA" type="2007">
+ <children xmi:type="notation:Node" xmi:id="_GPBTAFmiEd2P9rCHPooJgA" type="4007"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_GPAr8VmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_GPAr8lmiEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_GPAr81miEd2P9rCHPooJgA" fillColor="16771304"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_GPAr9FmiEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Lane" href="PolicyPricingProcess.bpmn#_GO-2wVmiEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_GPAr9VmiEd2P9rCHPooJgA" y="5" height="89"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_HHdW4FmiEd2P9rCHPooJgA" type="2007">
+ <children xmi:type="notation:Node" xmi:id="_HHdW5lmiEd2P9rCHPooJgA" type="4007"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_HHdW4VmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_HHdW4lmiEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_HHdW41miEd2P9rCHPooJgA" fillColor="16771304"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_HHdW5FmiEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Lane" href="PolicyPricingProcess.bpmn#_HHcIwVmiEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HHdW5VmiEd2P9rCHPooJgA" y="96" height="103"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_OwvccFmiEd2P9rCHPooJgA" type="2001">
+ <children xmi:type="notation:Node" xmi:id="_OwwDgFmiEd2P9rCHPooJgA" type="4001"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_OwvccVmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_OwvcclmiEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_Owvcc1miEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_OwvcdFmiEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Activity" href="PolicyPricingProcess.bpmn#_OwuOUVmiEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OwvcdVmiEd2P9rCHPooJgA" x="373" y="16"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_P2UkcFmiEd2P9rCHPooJgA" type="2001">
+ <children xmi:type="notation:Node" xmi:id="_P2VLgFmiEd2P9rCHPooJgA" type="4001"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_P2UkcVmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_P2UkclmiEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_P2Ukc1miEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_P2UkdFmiEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Activity" href="PolicyPricingProcess.bpmn#_P2TWUVmiEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_P2UkdVmiEd2P9rCHPooJgA" x="555" y="141"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_ZxZtgFmiEd2P9rCHPooJgA" type="2001">
+ <children xmi:type="notation:Node" xmi:id="_ZxaUlFmiEd2P9rCHPooJgA" type="4001"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ZxZtgVmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_ZxaUkFmiEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_ZxaUkVmiEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_ZxaUklmiEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Activity" href="PolicyPricingProcess.bpmn#_ZxYfYVmiEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZxaUk1miEd2P9rCHPooJgA" x="832" y="80"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_fli5kFmmEd2P9rCHPooJgA" type="1003">
+ <children xmi:type="notation:Node" xmi:id="_fljgoFmmEd2P9rCHPooJgA" type="4010"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_fli5kVmmEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_fli5klmmEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_fli5k1mmEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_fli5lFmmEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:DataObject" href="PolicyPricingProcess.bpmn#_fliSgVmmEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_fli5lVmmEd2P9rCHPooJgA" x="160" y="144"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_eFp0IFmmEd2P9rCHPooJgA" type="1003">
+ <children xmi:type="notation:Node" xmi:id="_eFp0JlmmEd2P9rCHPooJgA" type="4010"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_eFp0IVmmEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_eFp0IlmmEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_eFp0I1mmEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_eFp0JFmmEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:DataObject" href="PolicyPricingProcess.bpmn#_eFomAVmmEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_eFp0JVmmEd2P9rCHPooJgA" x="64" y="144"/>
+ </children>
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_1ZrtkVmhEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_1ZrtklmhEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_1Zrtk1mhEd2P9rCHPooJgA"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_1ZqfcVmhEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_1ZqfclmhEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FillStyle" xmi:id="_1Zqfc1mhEd2P9rCHPooJgA" fillColor="16771304"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_1ZqfdFmhEd2P9rCHPooJgA" lineColor="11119017"/>
+ <element xmi:type="bpmn:Pool" href="PolicyPricingProcess.bpmn#_1ZpRUVmhEd2P9rCHPooJgA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1ZrtlFmhEd2P9rCHPooJgA" x="16" y="32" width="1500" height="214"/>
+ </children>
+ <styles xmi:type="notation:PageStyle" xmi:id="_1Ze5QVmhEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:GuideStyle" xmi:id="_1Ze5QlmhEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_1Ze5Q1mhEd2P9rCHPooJgA"/>
+ <element xmi:type="bpmn:BpmnDiagram" href="PolicyPricingProcess.bpmn#_1ZcdAVmhEd2P9rCHPooJgA"/>
+ <edges xmi:type="notation:Edge" xmi:id="_WBGEoFmiEd2P9rCHPooJgA" type="3001" source="_A-so4FmiEd2P9rCHPooJgA" target="_1Zs7sFmhEd2P9rCHPooJgA">
+ <children xmi:type="notation:Node" xmi:id="_WBHSwFmiEd2P9rCHPooJgA" type="4012">
+ <styles xmi:type="notation:FillStyle" xmi:id="_WBHSwVmiEd2P9rCHPooJgA" fillColor="16776959"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_WBHSwlmiEd2P9rCHPooJgA" lineColor="16776959"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WBHSw1miEd2P9rCHPooJgA" y="-10"/>
+ </children>
+ <styles xmi:type="notation:RoutingStyle" xmi:id="_WBGEoVmiEd2P9rCHPooJgA" routing="Rectilinear" smoothness="Normal" closestDistance="true"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_WBGEolmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_WBGEo1miEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:SequenceEdge" href="PolicyPricingProcess.bpmn#_WBEPcVmiEd2P9rCHPooJgA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_WBGEpFmiEd2P9rCHPooJgA" points="[15, -6, -162, 45]$[113, -50, -64, 1]"/>
+ </edges>
+ <edges xmi:type="notation:Edge" xmi:id="_W_kfEFmiEd2P9rCHPooJgA" type="3001" source="_1Zs7sFmhEd2P9rCHPooJgA" target="_OwvccFmiEd2P9rCHPooJgA">
+ <children xmi:type="notation:Node" xmi:id="_W_kfFVmiEd2P9rCHPooJgA" type="4012">
+ <styles xmi:type="notation:FillStyle" xmi:id="_W_kfFlmiEd2P9rCHPooJgA" fillColor="16776959"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_W_kfF1miEd2P9rCHPooJgA" lineColor="16776959"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_W_kfGFmiEd2P9rCHPooJgA" y="-10"/>
+ </children>
+ <styles xmi:type="notation:RoutingStyle" xmi:id="_W_kfEVmiEd2P9rCHPooJgA" routing="Rectilinear" smoothness="Normal" closestDistance="true"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_W_kfElmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_W_kfE1miEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:SequenceEdge" href="PolicyPricingProcess.bpmn#_W_ip4VmiEd2P9rCHPooJgA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_W_kfFFmiEd2P9rCHPooJgA" points="[65, -4, -136, -1]$[185, -13, -16, -10]"/>
+ </edges>
+ <edges xmi:type="notation:Edge" xmi:id="_h4uZ8FmiEd2P9rCHPooJgA" type="3001" source="_OwvccFmiEd2P9rCHPooJgA" target="_ZxZtgFmiEd2P9rCHPooJgA">
+ <children xmi:type="notation:Node" xmi:id="_h4vBBFmiEd2P9rCHPooJgA" type="4012">
+ <styles xmi:type="notation:FillStyle" xmi:id="_h4vBBVmiEd2P9rCHPooJgA" fillColor="16776959"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_h4vBBlmiEd2P9rCHPooJgA" lineColor="16776959"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_h4vBB1miEd2P9rCHPooJgA" y="-10"/>
+ </children>
+ <styles xmi:type="notation:RoutingStyle" xmi:id="_h4vBAFmiEd2P9rCHPooJgA" routing="Rectilinear" smoothness="Normal" closestDistance="true"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_h4vBAVmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_h4vBAlmiEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:SequenceEdge" href="PolicyPricingProcess.bpmn#_h4ty4VmiEd2P9rCHPooJgA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_h4vBA1miEd2P9rCHPooJgA" points="[0, 1, -397, -70]$[397, 36, 0, -35]$[397, 71, 0, 0]"/>
+ </edges>
+ <edges xmi:type="notation:Edge" xmi:id="_kUJ6kFmiEd2P9rCHPooJgA" type="3001" source="_OwvccFmiEd2P9rCHPooJgA" target="_P2UkcFmiEd2P9rCHPooJgA">
+ <children xmi:type="notation:Node" xmi:id="_kUKhoFmiEd2P9rCHPooJgA" type="4012">
+ <styles xmi:type="notation:FillStyle" xmi:id="_kUKhoVmiEd2P9rCHPooJgA" fillColor="16776959"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_kUKholmiEd2P9rCHPooJgA" lineColor="16776959"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_kUKho1miEd2P9rCHPooJgA" y="-10"/>
+ </children>
+ <styles xmi:type="notation:RoutingStyle" xmi:id="_kUJ6kVmiEd2P9rCHPooJgA" routing="Rectilinear" smoothness="Normal" closestDistance="true"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_kUJ6klmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_kUJ6k1miEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:SequenceEdge" href="PolicyPricingProcess.bpmn#_kUIscVmiEd2P9rCHPooJgA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_kUJ6lFmiEd2P9rCHPooJgA" points="[13, 11, -186, -101]$[165, 141, -34, 29]"/>
+ </edges>
+ <edges xmi:type="notation:Edge" xmi:id="_lklnsFmiEd2P9rCHPooJgA" type="3001" source="_P2UkcFmiEd2P9rCHPooJgA" target="_ZxZtgFmiEd2P9rCHPooJgA">
+ <children xmi:type="notation:Node" xmi:id="_lklntVmiEd2P9rCHPooJgA" type="4012">
+ <styles xmi:type="notation:FillStyle" xmi:id="_lklntlmiEd2P9rCHPooJgA" fillColor="16776959"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_lklnt1miEd2P9rCHPooJgA" lineColor="16776959"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lklnuFmiEd2P9rCHPooJgA" y="-10"/>
+ </children>
+ <styles xmi:type="notation:RoutingStyle" xmi:id="_lklnsVmiEd2P9rCHPooJgA" routing="Rectilinear" smoothness="Normal" closestDistance="true"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lklnslmiEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_lklns1miEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:SequenceEdge" href="PolicyPricingProcess.bpmn#_lkjLcVmiEd2P9rCHPooJgA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lklntFmiEd2P9rCHPooJgA" points="[54, -11, -185, 47]$[254, -43, 15, 15]"/>
+ </edges>
+ <edges xmi:type="notation:Edge" xmi:id="_iAIFoFmmEd2P9rCHPooJgA" type="3003" source="_eFp0IFmmEd2P9rCHPooJgA" target="_A-so4FmiEd2P9rCHPooJgA">
+ <styles xmi:type="notation:RoutingStyle" xmi:id="_iAIFoVmmEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_iAIFolmmEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_iAIFo1mmEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Association" href="PolicyPricingProcess.bpmn#_iAHekFmmEd2P9rCHPooJgA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_iAIFpFmmEd2P9rCHPooJgA" points="[-9, -6, 39, 32]$[-63, -40, -15, -2]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_iAJ60FmmEd2P9rCHPooJgA" id="(0.25,0.175)"/>
+ </edges>
+ <edges xmi:type="notation:Edge" xmi:id="_i0AZoFmmEd2P9rCHPooJgA" type="3003" source="_fli5kFmmEd2P9rCHPooJgA" target="_A-so4FmiEd2P9rCHPooJgA">
+ <styles xmi:type="notation:RoutingStyle" xmi:id="_i0AZoVmmEd2P9rCHPooJgA"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_i0AZolmmEd2P9rCHPooJgA" fontName="Arial"/>
+ <styles xmi:type="notation:LineStyle" xmi:id="_i0AZo1mmEd2P9rCHPooJgA" lineColor="0"/>
+ <element xmi:type="bpmn:Association" href="PolicyPricingProcess.bpmn#_iz_ykFmmEd2P9rCHPooJgA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_i0AZpFmmEd2P9rCHPooJgA" points="[-12, -3, 160, 36]$[-187, -27, -15, 12]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_i0C14FmmEd2P9rCHPooJgA" id="(0.325,0.15)"/>
+ </edges>
+</notation:Diagram>
13 years, 7 months
JBoss Tools SVN: r41343 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-05-24 05:24:41 -0400 (Thu, 24 May 2012)
New Revision: 41343
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressMessages.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/expressMessages.properties
Log:
JBIDE-11850
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressMessages.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressMessages.java 2012-05-24 09:16:21 UTC (rev 41342)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressMessages.java 2012-05-24 09:24:41 UTC (rev 41343)
@@ -18,5 +18,5 @@
public static String shareProjectMessage;
public static String additionNotRequiredModule;
public static String publishFailMissingProject;
-
+ public static String publishFailMissingFolder;
}
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java 2012-05-24 09:16:21 UTC (rev 41342)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/ExpressPublishMethod.java 2012-05-24 09:24:41 UTC (rev 41343)
@@ -62,6 +62,14 @@
OpenShiftUIActivator.PLUGIN_ID,
NLS.bind(ExpressMessages.publishFailMissingProject, behaviour.getServer().getName(), destProjName)));
}
+
+ String destinationFolder = ExpressServerUtils.getExpressDeployFolder(behaviour.getServer());
+ IContainer destFolder = "".equals(destinationFolder) ? magicProject : (IContainer)magicProject.findMember(new Path(destinationFolder));
+ if( destFolder == null || !destFolder.isAccessible()) {
+ throw new CoreException(new Status(IStatus.ERROR,
+ OpenShiftUIActivator.PLUGIN_ID,
+ NLS.bind(ExpressMessages.publishFailMissingFolder, behaviour.getServer().getName(), destFolder.getProjectRelativePath())));
+ }
}
@Override
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/expressMessages.properties
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/expressMessages.properties 2012-05-24 09:16:21 UTC (rev 41342)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/core/behaviour/expressMessages.properties 2012-05-24 09:24:41 UTC (rev 41343)
@@ -6,4 +6,5 @@
additionNotRequiredModule=This server requires the {0} application.
shareProjectTitle=Share projects?
shareProjectMessage="There are {0} projects that are not connected to any git repository. Would you like to share them now?
-publishFailMissingProject=Server {0} cannot publish. Required project "{1}" is missing or inaccessible.
\ No newline at end of file
+publishFailMissingProject=Server {0} cannot publish. Required project "{1}" is missing or inaccessible.
+publishFailMissingFolder=Server {0} cannot publish. Required folder "{1}" is missing or inaccessible.
13 years, 7 months
JBoss Tools SVN: r41342 - trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/server_properties.
by jbosstools-commits@lists.jboss.org
Author: rhopp
Date: 2012-05-24 05:16:21 -0400 (Thu, 24 May 2012)
New Revision: 41342
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/server_properties/as7.swtbot.test.properties
Log:
as7.swtbot.test.properties was broken in previous commit. Repaired
Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/server_properties/as7.swtbot.test.properties
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/server_properties/as7.swtbot.test.properties 2012-05-24 08:43:30 UTC (rev 41341)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/server_properties/as7.swtbot.test.properties 2012-05-24 09:16:21 UTC (rev 41342)
@@ -1 +1 @@
-SERVER=AS,7.1,default,/home/rhopp/Runtimes/jboss-as-7.1.1.Final
\ No newline at end of file
+SERVER=AS,7.1,default,${jbosstools.test.jbossas.home}
\ No newline at end of file
13 years, 7 months
JBoss Tools SVN: r41341 - trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-05-24 04:43:30 -0400 (Thu, 24 May 2012)
New Revision: 41341
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesAllBotTests.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesTestBase.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveNode.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveTest.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/CreatingArchiveTest.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/DeletingArchiveTest.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ViewIsPresentTest.java
Log:
ModifyingArchiveTest included in suite + refactoring
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesAllBotTests.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesAllBotTests.java 2012-05-24 08:42:44 UTC (rev 41340)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesAllBotTests.java 2012-05-24 08:43:30 UTC (rev 41341)
@@ -26,7 +26,7 @@
BuildingArchiveTest.class,
CreatingArchiveTest.class,
DeletingArchiveTest.class,
-// ModifyingArchiveTest.class,
+ ModifyingArchiveTest.class,
// DeployingArchiveTest.class,
})
public class ArchivesAllBotTests {
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesTestBase.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesTestBase.java 2012-05-24 08:42:44 UTC (rev 41340)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesTestBase.java 2012-05-24 08:43:30 UTC (rev 41341)
@@ -25,15 +25,18 @@
*
*/
@Require(clearProjects = true, perspective = "Java")
-// server = @Server(state = ServerState.NotRunning,
-// version = "6.0", operator = ">="))
@RunWith(RequirementAwareSuite.class)
@SuiteClasses({ ArchivesAllBotTests.class })
public class ArchivesTestBase extends SWTTestExt {
- protected ProjectArchivesView viewForProject(String projectName) {
+ protected ProjectArchivesView openProjectArchivesView() {
ProjectArchivesView view = new ProjectArchivesView();
view.show();
+ return view;
+ }
+
+ protected ProjectArchivesView viewForProject(String projectName) {
+ ProjectArchivesView view = openProjectArchivesView();
projectExplorer.selectProject(projectName);
return view;
}
@@ -42,10 +45,25 @@
return new ProjectArchivesExplorer(projectName);
}
+ protected void assertItemExistsInView(ProjectArchivesView view, String... path) {
+ assertTrue(view.itemExists(path));
+ }
+
+ protected void assertItemExistsInExplorer(ProjectArchivesExplorer explorer, String... path) {
+ assertTrue(explorer.itemExists(path));
+ }
+
+ protected void assertItemNotExistsInView(ProjectArchivesView view, String... path) {
+ assertFalse(view.itemExists(path));
+ }
+
+ protected void assertItemNotExistsInExplorer(ProjectArchivesExplorer explorer, String... path) {
+ assertFalse(explorer.itemExists(path));
+ }
+
protected static void importProject(String projectName) {
String location = "/resources/prj/" + projectName;
-
importProject(projectName, location, projectName);
}
@@ -53,7 +71,6 @@
String projectLocation, String dir) {
ImportHelper.importProject(projectLocation, dir, Activator.PLUGIN_ID);
-
eclipse.addConfiguredRuntimeIntoProject(projectName,
configuredState.getServer().name);
}
@@ -61,15 +78,12 @@
protected static void importProjectWithoutRuntime(String projectName) {
String location = "/resources/prj/" + projectName;
-
importProjectWithoutRuntime(projectName, location, projectName);
}
protected static void importProjectWithoutRuntime(String projectName,
String projectLocation, String dir) {
-
ImportHelper.importProject(projectLocation, dir, Activator.PLUGIN_ID);
-
}
}
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveNode.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveNode.java 2012-05-24 08:42:44 UTC (rev 41340)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveNode.java 2012-05-24 08:43:30 UTC (rev 41341)
@@ -21,8 +21,12 @@
public class BuildingArchiveNode extends ArchivesTestBase {
private static String projectName = "pr2";
- private String archiveName = projectName + ".jar [/" + projectName + "]";
+ private final String PATH_SUFFIX = " [/" + projectName + "]";
+ private final String ARCHIVE_NAME = projectName + ".jar";
+ private final String ARCHIVE_PATH =
+ ARCHIVE_NAME + PATH_SUFFIX;
+
@BeforeClass
public static void setup() {
importProjectWithoutRuntime(projectName);
@@ -31,7 +35,7 @@
@Test
public void testBuildingArchiveNode() {
viewForProject(projectName).
- buildArchiveNode(projectName, archiveName);
+ buildArchiveNode(projectName, ARCHIVE_PATH);
}
}
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveTest.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveTest.java 2012-05-24 08:42:44 UTC (rev 41340)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveTest.java 2012-05-24 08:43:30 UTC (rev 41341)
@@ -21,8 +21,12 @@
public class BuildingArchiveTest extends ArchivesTestBase{
private static String projectName = "pr2";
- private String archiveName = projectName + ".jar [/" + projectName + "]";
+ private final String PATH_SUFFIX = " [/" + projectName + "]";
+ private final String ARCHIVE_NAME = projectName + ".jar";
+ private final String ARCHIVE_PATH =
+ ARCHIVE_NAME + PATH_SUFFIX;
+
@BeforeClass
public static void setup() {
importProjectWithoutRuntime(projectName);
@@ -31,13 +35,13 @@
@Test
public void testBuildingArchiveWithView() {
viewForProject(projectName)
- .buildArchiveFull(projectName, archiveName);
+ .buildArchiveFull(projectName, ARCHIVE_PATH);
}
@Test
public void testBuildingArchiveWithExplorer() {
explorerForProject(projectName)
- .buildArchiveFull(archiveName);
+ .buildArchiveFull(ARCHIVE_PATH);
}
}
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/CreatingArchiveTest.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/CreatingArchiveTest.java 2012-05-24 08:42:44 UTC (rev 41340)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/CreatingArchiveTest.java 2012-05-24 08:43:30 UTC (rev 41341)
@@ -24,47 +24,63 @@
*/
public class CreatingArchiveTest extends ArchivesTestBase {
- private static String project1 = "pr1";
+ private static String project = "pr1";
+ private final String ARCHIVE_STANDARD_1 =
+ project + "-standard.jar";
+ private final String ARCHIVE_STANDARD_2 =
+ project + "-standard-expl.jar";
+ private final String ARCHIVE_NO_COMPRESSION_1 =
+ project + "-nocompression.jar";
+ private final String ARCHIVE_NO_COMPRESSION_2 =
+ project + "-nocompression-expl.jar";
+
+ private final String PATH_SUFFIX = " [/" + project + "]";
+ private final String ARCHIVE_STANDARD_1_PATH =
+ ARCHIVE_STANDARD_1 + PATH_SUFFIX;
+ private final String ARCHIVE_STANDARD_2_PATH =
+ ARCHIVE_STANDARD_2 + PATH_SUFFIX;
+ private final String ARCHIVE_NO_COMPRESSION_1_PATH =
+ ARCHIVE_NO_COMPRESSION_1 + PATH_SUFFIX;
+ private final String ARCHIVE_NO_COMPRESSION_2_PATH =
+ ARCHIVE_NO_COMPRESSION_2 + PATH_SUFFIX;
+
+
@BeforeClass
public static void setup() {
JavaProjectEntity jpe = new JavaProjectEntity();
- jpe.setProjectName(project1);
+ jpe.setProjectName(project);
eclipse.createJavaProject(jpe);
}
@Test
public void testCreatingArchivetWithView() {
- ProjectArchivesView view = viewForProject(project1);
+ ProjectArchivesView view = viewForProject(project);
- /* creating JAR archive from project1 - standard way */
- NewJarDialog dialog = view.createNewJarArchive(project1);
- createArchive(dialog, project1 + "-standard", true);
- assertTrue(view.itemExists(project1,
- project1 + "-standard.jar [/" + project1 + "]"));
+ /* creating JAR archive from project - standard way */
+ NewJarDialog dialog = view.createNewJarArchive(project);
+ createArchive(dialog, ARCHIVE_STANDARD_1, true);
+ assertItemExistsInView(view, project, ARCHIVE_STANDARD_1_PATH);
- /* creating JAR archive from project1 - no compression way */
- dialog = view.createNewJarArchive(project1);
- createArchive(dialog, project1 + "-nocompression", false);
- assertTrue(view.itemExists(project1,
- project1 + "-nocompression.jar [/" + project1 + "]"));
+ /* creating JAR archive from project - no compression way */
+ dialog = view.createNewJarArchive(project);
+ createArchive(dialog, ARCHIVE_NO_COMPRESSION_1, false);
+ assertItemExistsInView(view, project, ARCHIVE_NO_COMPRESSION_1_PATH);
}
@Test
public void testCreatingArchiveWithExplorer() {
- ProjectArchivesExplorer explorer = explorerForProject(project1);
+ ProjectArchivesExplorer explorer = explorerForProject(project);
- /* creating JAR archive from project1 - standard way */
+ /* creating JAR archive from project - standard way */
NewJarDialog dialog = explorer.createNewJarArchive();
- createArchive(dialog, project1 + "-standard-expl", true);
- assertTrue(explorer.itemExists(
- project1 + "-standard-expl.jar [/" + project1 + "]"));
+ createArchive(dialog, ARCHIVE_STANDARD_2, true);
+ assertItemExistsInExplorer(explorer, ARCHIVE_STANDARD_2_PATH);
- /* creating JAR archive from project1 - no compression way */
+ /* creating JAR archive from project - no compression way */
dialog = explorer.createNewJarArchive();
- createArchive(dialog, project1 + "-nocompression-expl", false);
- assertTrue(explorer.itemExists(
- project1 + "-nocompression-expl.jar [/" + project1 + "]"));
+ createArchive(dialog, ARCHIVE_NO_COMPRESSION_2, false);
+ assertItemExistsInExplorer(explorer, ARCHIVE_NO_COMPRESSION_2_PATH);
}
private void createArchive(NewJarDialog dialog, String archiveName,
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/DeletingArchiveTest.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/DeletingArchiveTest.java 2012-05-24 08:42:44 UTC (rev 41340)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/DeletingArchiveTest.java 2012-05-24 08:43:30 UTC (rev 41341)
@@ -23,8 +23,15 @@
public class DeletingArchiveTest extends ArchivesTestBase {
private static String project = "pr3";
- private String pathToArchive1 = project + "a.jar [/" + project + "]";
- private String pathToArchive2 = project + "b.jar [/" + project + "]";
+ private final String ARCHIVE_NAME_1 =
+ project + "a.jar";
+ private final String ARCHIVE_NAME_2 =
+ project + "b.jar";
+ private final String PATH_SUFFIX = " [/" + project + "]";
+ private final String PATH_ARCHIVE_1 =
+ ARCHIVE_NAME_1 + PATH_SUFFIX;
+ private final String PATH_ARCHIVE_2 =
+ ARCHIVE_NAME_2 + PATH_SUFFIX;
@BeforeClass
public static void setup() {
@@ -34,15 +41,15 @@
@Test
public void testDeletingArchivetWithView() {
ProjectArchivesView view = viewForProject(project);
- view.deleteArchive(project, pathToArchive1);
- assertFalse(view.itemExists(project, pathToArchive1));
+ view.deleteArchive(project, PATH_ARCHIVE_1);
+ assertItemNotExistsInView(view, project, PATH_ARCHIVE_1);
}
@Test
public void testDeletingArchiveWithExplorer() {
ProjectArchivesExplorer explorer = explorerForProject(project);
- explorer.deleteArchive(pathToArchive2);
- assertFalse(explorer.itemExists(pathToArchive1));
+ explorer.deleteArchive(PATH_ARCHIVE_2);
+ assertItemNotExistsInExplorer(explorer, PATH_ARCHIVE_2);
}
}
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ViewIsPresentTest.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ViewIsPresentTest.java 2012-05-24 08:42:44 UTC (rev 41340)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ViewIsPresentTest.java 2012-05-24 08:43:30 UTC (rev 41341)
@@ -10,7 +10,6 @@
******************************************************************************/
package org.jboss.tools.archives.ui.bot.test;
-import org.jboss.tools.archives.ui.bot.test.view.ProjectArchivesView;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.junit.Test;
@@ -23,8 +22,12 @@
@Test
public void testArchivesViewIsPresent() {
- ProjectArchivesView view = new ProjectArchivesView();
- view.show();
+ openProjectArchivesView();
+ assertArchivesViewIsActive();
+
+ }
+
+ private void assertArchivesViewIsActive() {
assertTrue("Project Archives view is not active.",
bot.activeView().getTitle().equals(IDELabel.View.PROJECT_ARCHIVES));
}
13 years, 7 months
JBoss Tools SVN: r41340 - trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-05-24 04:42:44 -0400 (Thu, 24 May 2012)
New Revision: 41340
Added:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ModifyingArchiveTest.java
Log:
ModifyingArchiveTest implemented
Added: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ModifyingArchiveTest.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ModifyingArchiveTest.java (rev 0)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ModifyingArchiveTest.java 2012-05-24 08:42:44 UTC (rev 41340)
@@ -0,0 +1,78 @@
+/*******************************************************************************
+ * Copyright (c) 2010-2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.archives.ui.bot.test;
+
+import org.jboss.tools.archives.ui.bot.test.dialog.EditArchiveDialog;
+import org.jboss.tools.archives.ui.bot.test.explorer.ProjectArchivesExplorer;
+import org.jboss.tools.archives.ui.bot.test.view.ProjectArchivesView;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ *
+ * @author jjankovi
+ *
+ */
+public class ModifyingArchiveTest extends ArchivesTestBase {
+
+ private static String project = "pr3";
+ private final String ARCHIVE_NAME_1 =
+ project + "a.jar";
+ private final String ARCHIVE_NAME_2 =
+ project + "b.jar";
+ private final String ARCHIVE_NAME_1_NEW =
+ project + "a-new.jar";
+ private final String ARCHIVE_NAME_2_NEW =
+ project + "b-new.jar";
+
+ private final String PATH_SUFFIX = " [/" + project + "]";
+ private final String PATH_ARCHIVE_1 =
+ ARCHIVE_NAME_1 + PATH_SUFFIX;
+ private final String PATH_ARCHIVE_2 =
+ ARCHIVE_NAME_2 + PATH_SUFFIX;
+ private final String PATH_ARCHIVE_1_NEW =
+ ARCHIVE_NAME_1_NEW + PATH_SUFFIX;
+ private final String PATH_ARCHIVE_2_NEW =
+ ARCHIVE_NAME_2_NEW + PATH_SUFFIX;
+
+ @BeforeClass
+ public static void setup() {
+ importProjectWithoutRuntime(project);
+ }
+
+ @Test
+ public void testModifyingArchivetWithView() {
+ ProjectArchivesView view = viewForProject(project);
+
+ /* modifying archive name with Project Archive view */
+ EditArchiveDialog dialog = view.editArchive(project, PATH_ARCHIVE_1);
+ editArchive(dialog, ARCHIVE_NAME_1_NEW);
+ assertItemNotExistsInView(view, project, PATH_ARCHIVE_1);
+ assertItemExistsInView(view, project, PATH_ARCHIVE_1_NEW);
+ }
+
+ @Test
+ public void testModifyingArchiveWithExplorer() {
+ ProjectArchivesExplorer explorer = new ProjectArchivesExplorer(project);
+
+ /* modifying archive name with Project Archive explorer */
+ EditArchiveDialog dialog = explorer.editArchive(PATH_ARCHIVE_2);
+ editArchive(dialog, ARCHIVE_NAME_2_NEW);
+ assertItemNotExistsInExplorer(explorer, PATH_ARCHIVE_2);
+ assertItemExistsInExplorer(explorer, PATH_ARCHIVE_2_NEW);
+ }
+
+ private void editArchive(EditArchiveDialog dialog, String newArchiveName) {
+ dialog.setArchiveName(newArchiveName);
+ dialog.finish();
+ }
+
+}
13 years, 7 months
JBoss Tools SVN: r41339 - in trunk/forge/plugins/org.jboss.tools.forge.runtime: META-INF and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2012-05-24 04:41:06 -0400 (Thu, 24 May 2012)
New Revision: 41339
Modified:
trunk/forge/plugins/org.jboss.tools.forge.runtime/
trunk/forge/plugins/org.jboss.tools.forge.runtime/.classpath
trunk/forge/plugins/org.jboss.tools.forge.runtime/META-INF/MANIFEST.MF
trunk/forge/plugins/org.jboss.tools.forge.runtime/build.properties
trunk/forge/plugins/org.jboss.tools.forge.runtime/pom.xml
Log:
JBIDE-11981: Update Forge Embedded Runtime to 1.0.5.Final
Property changes on: trunk/forge/plugins/org.jboss.tools.forge.runtime
___________________________________________________________________
Modified: svn:ignore
- forge-distribution-1.0.3.Final
target
forge-distribution-1.0.4.Final
+ forge-distribution-1.0.3.Final
target
forge-distribution-1.0.4.Final
forge-distribution-1.0.5.Final
Modified: trunk/forge/plugins/org.jboss.tools.forge.runtime/.classpath
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.runtime/.classpath 2012-05-24 08:07:02 UTC (rev 41338)
+++ trunk/forge/plugins/org.jboss.tools.forge.runtime/.classpath 2012-05-24 08:41:06 UTC (rev 41339)
@@ -2,8 +2,8 @@
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry exported="true" kind="lib" path="forge-distribution-1.0.4.Final/modules/javax/inject/api/main/javax.inject-1.jar"/>
- <classpathentry exported="true" kind="lib" path="forge-distribution-1.0.4.Final/modules/javax/enterprise/api/main/cdi-api-1.0-SP4.jar"/>
- <classpathentry exported="true" kind="lib" path="forge-distribution-1.0.4.Final/modules/org/jboss/forge/shell/api/main/forge-shell-api-1.0.4.Final.jar"/>
+ <classpathentry exported="true" kind="lib" path="forge-distribution-1.0.5.Final/modules/javax/inject/api/main/javax.inject-1.jar"/>
+ <classpathentry exported="true" kind="lib" path="forge-distribution-1.0.5.Final/modules/javax/enterprise/api/main/cdi-api-1.0-SP4.jar"/>
+ <classpathentry exported="true" kind="lib" path="forge-distribution-1.0.5.Final/modules/org/jboss/forge/shell/api/main/forge-shell-api-1.0.5.Final.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Modified: trunk/forge/plugins/org.jboss.tools.forge.runtime/META-INF/MANIFEST.MF
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.runtime/META-INF/MANIFEST.MF 2012-05-24 08:07:02 UTC (rev 41338)
+++ trunk/forge/plugins/org.jboss.tools.forge.runtime/META-INF/MANIFEST.MF 2012-05-24 08:41:06 UTC (rev 41339)
@@ -16,7 +16,7 @@
org.jboss.forge.shell.command,
org.jboss.forge.shell.events,
org.jboss.forge.shell.spi
-Bundle-ClassPath: forge-distribution-1.0.4.Final/modules/javax/inject/api/main/javax.inject-1.jar,
- forge-distribution-1.0.4.Final/modules/javax/enterprise/api/main/cdi-api-1.0-SP4.jar,
- forge-distribution-1.0.4.Final/modules/org/jboss/forge/shell/api/main/forge-shell-api-1.0.4.Final.jar
+Bundle-ClassPath: forge-distribution-1.0.5.Final/modules/javax/inject/api/main/javax.inject-1.jar,
+ forge-distribution-1.0.5.Final/modules/javax/enterprise/api/main/cdi-api-1.0-SP4.jar,
+ forge-distribution-1.0.5.Final/modules/org/jboss/forge/shell/api/main/forge-shell-api-1.0.5.Final.jar
Modified: trunk/forge/plugins/org.jboss.tools.forge.runtime/build.properties
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.runtime/build.properties 2012-05-24 08:07:02 UTC (rev 41338)
+++ trunk/forge/plugins/org.jboss.tools.forge.runtime/build.properties 2012-05-24 08:41:06 UTC (rev 41339)
@@ -1,5 +1,5 @@
bin.includes = META-INF/,\
- forge-distribution-1.0.4.Final/
+ forge-distribution-1.0.5.Final/
src.includes = *
jars.compile.order = .
source.. =
Modified: trunk/forge/plugins/org.jboss.tools.forge.runtime/pom.xml
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.runtime/pom.xml 2012-05-24 08:07:02 UTC (rev 41338)
+++ trunk/forge/plugins/org.jboss.tools.forge.runtime/pom.xml 2012-05-24 08:41:06 UTC (rev 41339)
@@ -28,7 +28,7 @@
<artifactItem>
<groupId>org.jboss.forge</groupId>
<artifactId>forge-distribution</artifactId>
- <version>1.0.4.Final</version>
+ <version>1.0.5.Final</version>
<type>zip</type>
</artifactItem>
</artifactItems>
13 years, 7 months
JBoss Tools SVN: r41338 - trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot.
by jbosstools-commits@lists.jboss.org
Author: rhopp
Date: 2012-05-24 04:07:02 -0400 (Thu, 24 May 2012)
New Revision: 41338
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
Log:
Added testing to Deploy to EAP (https://issues.jboss.org/browse/JBQA-6348)
Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java 2012-05-24 07:33:12 UTC (rev 41337)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java 2012-05-24 08:07:02 UTC (rev 41338)
@@ -6,10 +6,10 @@
@RunWith(RequirementAwareSuite.class)
@SuiteClasses({
- //BaseFunctionalityTest.class,
- CreateProjectsWithServerTest.class
+ BaseFunctionalityTest.class,
+ CreateProjectsWithServerTest.class,
// CreateProjectsWithoutServerTest.class
-// DocumentationSectionTest.class
+ DocumentationSectionTest.class
//EmptyTestForHudson.class
})
public class CentralAllBotTests {
Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java 2012-05-24 07:33:12 UTC (rev 41337)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java 2012-05-24 08:07:02 UTC (rev 41338)
@@ -27,7 +27,9 @@
import org.junit.BeforeClass;
import org.junit.Test;
-@Require(server=(a)org.jboss.tools.ui.bot.ext.config.Annotations.Server(type=ServerType.EAP))
+
+//TODO When testing new build try it with type=ServerType.EAP !!!!
+@Require(server=(a)org.jboss.tools.ui.bot.ext.config.Annotations.Server(type=ServerType.JbossAS))
public class CreateProjectsWithServerTest extends SWTTestExt{
@BeforeClass
@@ -180,10 +182,10 @@
//check the rest of project examples
checkExample(null, IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT, false);
-// checkExample(null, IDELabel.JBossCentralEditor.JAVA_EE_PROJECT, true);
-// checkExample(null, IDELabel.JBossCentralEditor.HTML5_PROJECT, true);
-// checkExample(null, IDELabel.JBossCentralEditor.RICHFACES_PROJECT, true);
-// checkExample(null, IDELabel.JBossCentralEditor.SPRING_MVC_PROJECT, false);
+ checkExample(null, IDELabel.JBossCentralEditor.JAVA_EE_PROJECT, true);
+ checkExample(null, IDELabel.JBossCentralEditor.HTML5_PROJECT, true);
+ checkExample(null, IDELabel.JBossCentralEditor.RICHFACES_PROJECT, true);
+ checkExample(null, IDELabel.JBossCentralEditor.SPRING_MVC_PROJECT, false);
/*checkCreateProject(IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT);
checkCreateProject(IDELabel.JBossCentralEditor.JAVA_EE_PROJECT);
@@ -198,7 +200,7 @@
projectExplorer.deleteAllProjects();
}
-// @Test
+ @Test
public void projectExamplesSectionTest(){
SWTBotTwistie twistieBot = bot.twistieByLabel("JBoss Quickstarts");
while (!twistieBot.isExpanded()){
@@ -279,6 +281,7 @@
*/
private void checkExample(SWTFormsBotExt formsBot, String formText, boolean readme, String readmeFileName){
+ problems.show();
if (formsBot==null){
bot.hyperlink(formText).click();
}else{
13 years, 7 months
JBoss Tools SVN: r41337 - in trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test: context and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-05-24 03:33:12 -0400 (Thu, 24 May 2012)
New Revision: 41337
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveNode.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveTest.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingProjectTest.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/CreatingArchiveTest.java
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/context/ArchiveContextMenu.java
Log:
refactoring
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveNode.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveNode.java 2012-05-24 07:32:54 UTC (rev 41336)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveNode.java 2012-05-24 07:33:12 UTC (rev 41337)
@@ -10,7 +10,6 @@
******************************************************************************/
package org.jboss.tools.archives.ui.bot.test;
-import org.jboss.tools.archives.ui.bot.test.view.ProjectArchivesView;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -31,10 +30,8 @@
@Test
public void testBuildingArchiveNode() {
- ProjectArchivesView view = new ProjectArchivesView();
- view.show();
- projectExplorer.selectProject(projectName);
- view.buildArchiveNode(projectName, archiveName);
+ viewForProject(projectName).
+ buildArchiveNode(projectName, archiveName);
}
}
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveTest.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveTest.java 2012-05-24 07:32:54 UTC (rev 41336)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingArchiveTest.java 2012-05-24 07:33:12 UTC (rev 41337)
@@ -10,8 +10,6 @@
******************************************************************************/
package org.jboss.tools.archives.ui.bot.test;
-import org.jboss.tools.archives.ui.bot.test.explorer.ProjectArchivesExplorer;
-import org.jboss.tools.archives.ui.bot.test.view.ProjectArchivesView;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -32,17 +30,14 @@
@Test
public void testBuildingArchiveWithView() {
- ProjectArchivesView view = new ProjectArchivesView();
- view.show();
- projectExplorer.selectProject(projectName);
- view.buildArchiveFull(projectName, archiveName);
+ viewForProject(projectName)
+ .buildArchiveFull(projectName, archiveName);
}
@Test
public void testBuildingArchiveWithExplorer() {
- ProjectArchivesExplorer explorer =
- new ProjectArchivesExplorer(projectName);
- explorer.buildArchiveFull(archiveName);
+ explorerForProject(projectName)
+ .buildArchiveFull(archiveName);
}
}
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingProjectTest.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingProjectTest.java 2012-05-24 07:32:54 UTC (rev 41336)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/BuildingProjectTest.java 2012-05-24 07:33:12 UTC (rev 41337)
@@ -10,8 +10,6 @@
******************************************************************************/
package org.jboss.tools.archives.ui.bot.test;
-import org.jboss.tools.archives.ui.bot.test.explorer.ProjectArchivesExplorer;
-import org.jboss.tools.archives.ui.bot.test.view.ProjectArchivesView;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -31,17 +29,12 @@
@Test
public void testBuildingProjectWithView() {
- ProjectArchivesView view = new ProjectArchivesView();
- view.show();
- projectExplorer.selectProject(projectName);
- view.buildProjectFull(projectName);
+ viewForProject(projectName).buildProjectFull(projectName);
}
@Test
public void testBuildingProjectWithExplorer() {
- ProjectArchivesExplorer explorer =
- new ProjectArchivesExplorer(projectName);
- explorer.buildProjectFull();
+ explorerForProject(projectName).buildProjectFull();
}
}
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/CreatingArchiveTest.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/CreatingArchiveTest.java 2012-05-24 07:32:54 UTC (rev 41336)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/CreatingArchiveTest.java 2012-05-24 07:33:12 UTC (rev 41337)
@@ -35,46 +35,47 @@
@Test
public void testCreatingArchivetWithView() {
- ProjectArchivesView view = new ProjectArchivesView();
- view.show();
- projectExplorer.selectProject(project1);
+ ProjectArchivesView view = viewForProject(project1);
/* creating JAR archive from project1 - standard way */
NewJarDialog dialog = view.createNewJarArchive(project1);
- dialog.setArchiveName(project1 + "-standard");
- dialog.setZipStandardArchiveType();
- dialog.finish();
+ createArchive(dialog, project1 + "-standard", true);
assertTrue(view.itemExists(project1,
project1 + "-standard.jar [/" + project1 + "]"));
/* creating JAR archive from project1 - no compression way */
dialog = view.createNewJarArchive(project1);
- dialog.setArchiveName(project1 + "-nocompression");
- dialog.setNoCompressionArchiveType();
- dialog.finish();
+ createArchive(dialog, project1 + "-nocompression", false);
assertTrue(view.itemExists(project1,
project1 + "-nocompression.jar [/" + project1 + "]"));
}
@Test
public void testCreatingArchiveWithExplorer() {
- ProjectArchivesExplorer explorer = new ProjectArchivesExplorer(project1);
+ ProjectArchivesExplorer explorer = explorerForProject(project1);
/* creating JAR archive from project1 - standard way */
NewJarDialog dialog = explorer.createNewJarArchive();
- dialog.setArchiveName(project1 + "-standard-expl");
- dialog.setZipStandardArchiveType();
- dialog.finish();
+ createArchive(dialog, project1 + "-standard-expl", true);
assertTrue(explorer.itemExists(
project1 + "-standard-expl.jar [/" + project1 + "]"));
/* creating JAR archive from project1 - no compression way */
dialog = explorer.createNewJarArchive();
- dialog.setArchiveName(project1 + "-nocompression-expl");
- dialog.setNoCompressionArchiveType();
- dialog.finish();
+ createArchive(dialog, project1 + "-nocompression-expl", false);
assertTrue(explorer.itemExists(
project1 + "-nocompression-expl.jar [/" + project1 + "]"));
}
+ private void createArchive(NewJarDialog dialog, String archiveName,
+ boolean standardCompression) {
+ dialog.setArchiveName(archiveName);
+ if (standardCompression) {
+ dialog.setZipStandardArchiveType();
+ } else {
+ dialog.setNoCompressionArchiveType();
+ }
+ dialog.finish();
+ }
+
}
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/context/ArchiveContextMenu.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/context/ArchiveContextMenu.java 2012-05-24 07:32:54 UTC (rev 41336)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/context/ArchiveContextMenu.java 2012-05-24 07:33:12 UTC (rev 41337)
@@ -16,6 +16,7 @@
import org.jboss.tools.archives.ui.bot.test.dialog.ArchivePublishSettingsDialog;
import org.jboss.tools.archives.ui.bot.test.dialog.EditArchiveDialog;
import org.jboss.tools.archives.ui.bot.test.dialog.NewJarDialog;
+import org.jboss.tools.ui.bot.ext.SWTBotFactory;
import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
/**
@@ -65,6 +66,7 @@
SWTBotMenu menu = new SWTBotMenu(ContextMenuHelper.
getContextMenu(tree, "Delete Archive", false));
menu.click();
+ SWTBotFactory.getUtil().waitForNonIgnoredJobs();
}
public ArchivePublishSettingsDialog publishToServer(SWTBotTree tree,
13 years, 7 months
JBoss Tools SVN: r41336 - trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-05-24 03:32:54 -0400 (Thu, 24 May 2012)
New Revision: 41336
Modified:
trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesAllBotTests.java
Log:
DeletingArchiveTest now included in suite
Modified: trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesAllBotTests.java
===================================================================
--- trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesAllBotTests.java 2012-05-24 07:32:26 UTC (rev 41335)
+++ trunk/archives/tests/org.jboss.tools.archives.ui.bot.test/src/org/jboss/tools/archives/ui/bot/test/ArchivesAllBotTests.java 2012-05-24 07:32:54 UTC (rev 41336)
@@ -25,8 +25,8 @@
BuildingProjectTest.class,
BuildingArchiveTest.class,
CreatingArchiveTest.class,
+ DeletingArchiveTest.class,
// ModifyingArchiveTest.class,
-// DeletingArchiveTest.class,
// DeployingArchiveTest.class,
})
public class ArchivesAllBotTests {
13 years, 7 months