• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.factory;
2 
3 import org.testng.annotations.Test;
4 
5 public class BaseFactory {
6 
7   private int m_n;
8 
BaseFactory(int n)9   public BaseFactory(int n) {
10     m_n = n;
11   }
12 
getN()13   public int getN() {
14     return m_n;
15   }
16 
17   @Test
f()18   public void f() {
19   }
20 
21   /**
22    * @@@ for some reason, the test results get added in the wrong order if
23    * I don't define a toString() method. Need to investigate.
24    */
25   @Override
toString()26   public String toString() {
27     return "[" + getClass().getName() + " " + getN() + "]";
28   }
29 }
30