From jbosstools-commits at lists.jboss.org Thu Jul 2 10:37:55 2009 Content-Type: multipart/mixed; boundary="===============7304418148481053445==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r16342 - in trunk/seam/tests/org.jboss.tools.seam.core.test: projects/Test1-ejb/ejbModule/org/domain/Test1/session and 1 other directories. Date: Thu, 02 Jul 2009 10:22:33 -0400 Message-ID: <200907021422.n62EMXSG011947@svn01.web.mwc.hst.phx2.redhat.com> --===============7304418148481053445== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dazarov Date: 2009-07-02 10:22:32 -0400 (Thu, 02 Jul 2009) New Revision: 16342 Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/Test1-ejb/ejbMo= dule/org/domain/Test1/session/TestContextVariableDataModel.java trunk/seam/tests/org.jboss.tools.seam.core.test/projects/Test1/WebConten= t/datamodel.jsp Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam= /core/test/refactoring/SeamContextVariableRefactoringTest.java Log: https://jira.jboss.org/jira/browse/JBIDE-1077 Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/Test1/WebCo= ntent/datamodel.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/Test1/WebConte= nt/datamodel.jsp (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/Test1/WebConte= nt/datamodel.jsp 2009-07-02 14:22:32 UTC (rev 16342) @@ -0,0 +1,13 @@ +<%@ taglib uri=3D"http://java.sun.com/jsf/html" prefix=3D"h" %> +<%@ taglib uri=3D"http://java.sun.com/jsf/core" prefix=3D"f" %> + + + + + + + + + + = + = Property changes on: trunk/seam/tests/org.jboss.tools.seam.core.test/projec= ts/Test1/WebContent/datamodel.jsp ___________________________________________________________________ Name: svn:mime-type + text/plain Added: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/Test1-ejb/e= jbModule/org/domain/Test1/session/TestContextVariableDataModel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/Test1-ejb/ejbM= odule/org/domain/Test1/session/TestContextVariableDataModel.java = (rev 0) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/Test1-ejb/ejbM= odule/org/domain/Test1/session/TestContextVariableDataModel.java 2009-07-02= 14:22:32 UTC (rev 16342) @@ -0,0 +1,38 @@ +package org.domain.Test1.session; + +import org.jboss.seam.annotations.In; +import org.jboss.seam.annotations.Logger; +import org.jboss.seam.annotations.Name; +import org.jboss.seam.annotations.datamodel.DataModel; +import org.jboss.seam.log.Log; +import org.jboss.seam.security.Identity; + + +(a)Name("computer3") +public class TestContextVariableDataModel +{ + @Logger Log log; + = + @In Identity identity; + = + @In String main3; + = + @In("main3") boolean flag; + = + @DataModel("data") + int getVar(){ + return 2; + }; + = + @DataModel + String getModel(){ + return "Test value is #{main3.value}!"; + }; + = + public boolean calculate() + { + log.info("authenticating #0", identity.getUsername()); + identity.addRole("admin"); + return true; + } +} Property changes on: trunk/seam/tests/org.jboss.tools.seam.core.test/projec= ts/Test1-ejb/ejbModule/org/domain/Test1/session/TestContextVariableDataMode= l.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/too= ls/seam/core/test/refactoring/SeamContextVariableRefactoringTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/refactoring/SeamContextVariableRefactoringTest.java 2009-07-02 = 13:53:23 UTC (rev 16341) +++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/sea= m/core/test/refactoring/SeamContextVariableRefactoringTest.java 2009-07-02 = 14:22:32 UTC (rev 16342) @@ -178,19 +178,47 @@ ArrayList list =3D new ArrayList(); = TestChangeStructure structure =3D new TestChangeStructure(ejbProject.get= Project(), "/ejbModule/org/domain/"+warProjectName+"/session/TestContextVar= iableOut.java"); - TestTextChange change =3D new TestTextChange(464, 5, "\"eee\""); + TestTextChange change =3D new TestTextChange(528, 5, "\"eee\""); structure.addTextChange(change); list.add(structure); = structure =3D new TestChangeStructure(warProject, "/WebContent/out.jsp"); - change =3D new TestTextChange(227, 3, "eee"); + change =3D new TestTextChange(283, 3, "eee"); structure.addTextChange(change); list.add(structure); = renameContextVariable(seamEjbProject, "/WebContent/out.jsp", "ddd", "eee= ", list); } = - public void t_estSeamContextVariable_DataModel_Rename() throws CoreExcept= ion { + public void testSeamContextVariable_DataModel1_Rename() throws CoreExcept= ion { + ArrayList list =3D new ArrayList(); + + TestChangeStructure structure =3D new TestChangeStructure(ejbProject.get= Project(), "/ejbModule/org/domain/"+warProjectName+"/session/TestContextVar= iableDataModel.java"); + TestTextChange change =3D new TestTextChange(483, 6, "\"dada\""); + structure.addTextChange(change); + list.add(structure); = + structure =3D new TestChangeStructure(warProject, "/WebContent/datamodel= .jsp"); + change =3D new TestTextChange(227, 4, "dada"); + structure.addTextChange(change); + list.add(structure); + = + renameContextVariable(seamEjbProject, "/WebContent/datamodel.jsp", "data= ", "dada", list); } + = + public void t_estSeamContextVariable_DataModel2_Rename() throws CoreExcep= tion { + ArrayList list =3D new ArrayList(); + + TestChangeStructure structure =3D new TestChangeStructure(ejbProject.get= Project(), "/ejbModule/org/domain/"+warProjectName+"/session/TestContextVar= iableDataModel.java"); + TestTextChange change =3D new TestTextChange(528, 7, "\"modal\""); + structure.addTextChange(change); + list.add(structure); + = + structure =3D new TestChangeStructure(warProject, "/WebContent/datamodel= .jsp"); + change =3D new TestTextChange(283, 5, "modal"); + structure.addTextChange(change); + list.add(structure); + = + renameContextVariable(seamEjbProject, "/WebContent/datamodel.jsp", "mode= l", "modal", list); + } } --===============7304418148481053445==--