Author: mircea.markus
Date: 2008-12-12 03:48:42 -0500 (Fri, 12 Dec 2008)
New Revision: 7304
Added:
core/trunk/src/test/java/org/jboss/cache/testng/other/
core/trunk/src/test/java/org/jboss/cache/testng/other/Derived.java
core/trunk/src/test/java/org/jboss/cache/testng/other/third/
core/trunk/src/test/java/org/jboss/cache/testng/other/third/SecondDerived.java
Removed:
core/trunk/src/test/java/org/jboss/cache/testng/Derived.java
Modified:
core/trunk/src/test/java/org/jboss/cache/testng/Base.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/testng/Base.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/testng/Base.java 2008-12-12 08:47:58 UTC (rev
7303)
+++ core/trunk/src/test/java/org/jboss/cache/testng/Base.java 2008-12-12 08:48:42 UTC (rev
7304)
@@ -5,67 +5,27 @@
/**
* @author Mircea.Markus(a)jboss.com
*/
-@Test(groups = "functional", testName = "sadsadsa")
-public class Base
+@Test(groups = "functional")
+public abstract class Base
{
- private int value = -5;
-
- static int count;
-
- public Base(int value)
- {
- this.value = value;
- }
-
- public Base()
- {
- }
-
- @Factory
- public static Object[] createInstances()
- {
- Base base = new Base(1);
- Base base2 = new Base(2);
- return new Object[]{base, base2};
- }
-
-
@BeforeClass
public void beforeTest()
{
- System.out.println("Base.beforeTest" + value);
+ System.out.println("Base.beforeTest");
}
@AfterClass
public void afterTest()
{
- System.out.println("Base.afterTest" + value);
+ System.out.println("Base.afterTest");
}
- public void testBaseAaaaaa()
- {
- System.out.println(getThreadName() + "aaaaaaaaaaaa" + value);
- }
-
@BeforeMethod
public void beforeMethod()
{
- System.out.println("Base.beforeMethod" + value);
+ System.out.println("Base.beforeMethod");
}
- @AfterMethod
- public void afterMethod()
- {
- System.out.println("Base.afterMethod" + value);
- }
-
- public void testBaseBbbbbbb()
- {
- count++;
-// if (count == 2) throw new RuntimeException();
- System.out.println(getThreadName() + "bbbbbbbbbbbbb" + value);
- }
-
protected String getThreadName()
{
return "[" + getClass() + " ************ -> " +
Thread.currentThread().getName() + "] ";
Deleted: core/trunk/src/test/java/org/jboss/cache/testng/Derived.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/testng/Derived.java 2008-12-12 08:47:58 UTC
(rev 7303)
+++ core/trunk/src/test/java/org/jboss/cache/testng/Derived.java 2008-12-12 08:48:42 UTC
(rev 7304)
@@ -1,30 +0,0 @@
-package org.jboss.cache.testng;
-
-import org.testng.annotations.Test;
-
-/**
- * @author Mircea.Markus(a)jboss.com
- */
-@Test(groups = "functional" , testName = "Same")
-public class Derived extends Base
-{
- public Derived(int value)
- {
- super(value);
- }
-
- // public void testDerivedCcccc()
-// {
-// System.out.println(getThreadName() + "ccccccccccccccccc");
-// }
-//
-// public void testDerivedDdddd()
-// {
-// System.out.println(getThreadName() + "dddddddddddddddddddd");
-// }
-//
-// protected String getThreadName()
-// {
-// return "[" + getClass() + " ************ -> " +
Thread.currentThread().getName() + "] ";
-// }
-}
Copied: core/trunk/src/test/java/org/jboss/cache/testng/other/Derived.java (from rev 7283,
core/trunk/src/test/java/org/jboss/cache/testng/Derived.java)
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/testng/other/Derived.java
(rev 0)
+++ core/trunk/src/test/java/org/jboss/cache/testng/other/Derived.java 2008-12-12 08:48:42
UTC (rev 7304)
@@ -0,0 +1,27 @@
+package org.jboss.cache.testng.other;
+
+import org.testng.annotations.Test;
+import org.jboss.cache.testng.Base;
+
+/**
+ * @author Mircea.Markus(a)jboss.com
+ */
+@Test(groups = "functional" , testName = "testng.other.Derived")
+public class Derived extends Base
+{
+
+ public void testDerivedCcccc()
+ {
+ System.out.println(getThreadName() + "ccccccccccccccccc");
+ }
+
+ public void testDerivedDdddd()
+ {
+ System.out.println(getThreadName() + "dddddddddddddddddddd");
+ }
+
+ protected String getThreadName()
+ {
+ return "[" + getClass() + " ************ -> " +
Thread.currentThread().getName() + "] ";
+ }
+}
Property changes on: core/trunk/src/test/java/org/jboss/cache/testng/other/Derived.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: core/trunk/src/test/java/org/jboss/cache/testng/other/third/SecondDerived.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/testng/other/third/SecondDerived.java
(rev 0)
+++
core/trunk/src/test/java/org/jboss/cache/testng/other/third/SecondDerived.java 2008-12-12
08:48:42 UTC (rev 7304)
@@ -0,0 +1,12 @@
+package org.jboss.cache.testng.other.third;
+
+import org.jboss.cache.testng.other.Derived;
+import org.testng.annotations.Test;
+
+/**
+ * @author Mircea.Markus(a)jboss.com
+ */
+@Test (groups = "functional", testName =
"tesng.other.third.SecondDerived")
+public class SecondDerived extends Derived
+{
+}
Show replies by date