Author: sohil.shah(a)jboss.com
Date: 2008-02-20 12:04:09 -0500 (Wed, 20 Feb 2008)
New Revision: 10051
Added:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/test/ajax/JBossUnitSandBox.java
branches/presentation/presentation/src/resources/jboss-unit/
branches/presentation/presentation/src/resources/jboss-unit/config/
branches/presentation/presentation/src/resources/jboss-unit/config/jboss-unit.xml
Modified:
branches/presentation/
branches/presentation/presentation/build.xml
Log:
starting jboss-unit based test cases
Property changes on: branches/presentation
___________________________________________________________________
Name: svn:ignore
- thirdparty
.classpath
.project
.settings
core-samples
cms
core-admin
core-cms
search
workflow
presentation-samples
+ thirdparty
.classpath
.project
.settings
core-samples
cms
core-admin
core-cms
search
workflow
presentation-samples
bin
Modified: branches/presentation/presentation/build.xml
===================================================================
--- branches/presentation/presentation/build.xml 2008-02-20 13:07:19 UTC (rev 10050)
+++ branches/presentation/presentation/build.xml 2008-02-20 17:04:09 UTC (rev 10051)
@@ -93,10 +93,13 @@
<path refid="jbossas/core.libs.classpath"/>
<path refid="sun.servlet.classpath"/>
<path refid="apache.log4j.classpath"/>
- <path refid="junit.junit.classpath"/>
- <path refid="gwt.gwt.classpath"/>
- <path refid="mygwt.mygwt.classpath"/>
- <path refid="httpunit.httpunit.classpath"/>
+ <path refid="junit.junit.classpath"/>
+ <path refid="gwt.gwt.classpath"/>
+ <path refid="mygwt.mygwt.classpath"/>
+ <path refid="httpunit.httpunit.classpath"/>
+ <pathelement
location="/home/soshah/.m2/repository/org/jboss/unit/jboss-unit/1.2.0-SNAPSHOT/jboss-unit-1.2.0-SNAPSHOT.jar"/>
+ <pathelement
location="/home/soshah/.m2/repository/org/jboss/unit/jboss-unit-tooling-ant/1.2.0-SNAPSHOT/jboss-unit-tooling-ant-1.2.0-SNAPSHOT.jar"/>
+ <pathelement
location="/home/soshah/.m2/repository/org/jboss/unit/jboss-unit-tooling-core/1.2.0-SNAPSHOT/jboss-unit-tooling-core-1.2.0-SNAPSHOT.jar"/>
</path>
<!-- Configure modules -->
@@ -322,5 +325,14 @@
</x-classpath>
</execute-tests>
</target>
-
+
+ <target name="test-jbossunit" depends="init">
+ <taskdef name="jboss-unit"
classname="org.jboss.unit.tooling.ant.JBossUnitTask"
classpathref="library.classpath"/>
+ <jboss-unit>
+ <tests config="src/resources/jboss-unit/config/jboss-unit.xml"/>
+ <classpath>
+ <path refid="library.classpath"/>
+ </classpath>
+ </jboss-unit>
+ </target>
</project>
Added:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/test/ajax/JBossUnitSandBox.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/test/ajax/JBossUnitSandBox.java
(rev 0)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/test/ajax/JBossUnitSandBox.java 2008-02-20
17:04:09 UTC (rev 10051)
@@ -0,0 +1,38 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.presentation.test.ajax;
+
+import org.jboss.unit.api.pojo.annotations.Test;
+
+/**
+ * @author <a href="mailto:sshah@redhat.com">Sohil Shah</a>
+ *
+ */
+public class JBossUnitSandBox
+{
+ @Test
+ public void test()
+ {
+ System.out.println("Simple JBossUnit Test in the PresentationFramework
successfully executed....");
+ }
+}
Added: branches/presentation/presentation/src/resources/jboss-unit/config/jboss-unit.xml
===================================================================
--- branches/presentation/presentation/src/resources/jboss-unit/config/jboss-unit.xml
(rev 0)
+++
branches/presentation/presentation/src/resources/jboss-unit/config/jboss-unit.xml 2008-02-20
17:04:09 UTC (rev 10051)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-unit
+ xmlns="urn:jboss:jboss-unit:1.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:jboss-unit:1.0 jboss-unit_1_0.xsd">
+ <pojo>
+ <test>
+ <class
name="org.jboss.portal.presentation.test.ajax.JBossUnitSandBox"/>
+ </test>
+ </pojo>
+</jboss-unit>
\ No newline at end of file