Home | History | Annotate | Download | only in factory
      1 package test.factory;
      2 
      3 import org.testng.annotations.Test;
      4 
      5 public class BaseFactory {
      6 
      7   private int m_n;
      8 
      9   public BaseFactory(int n) {
     10     m_n = n;
     11   }
     12 
     13   public int getN() {
     14     return m_n;
     15   }
     16 
     17   @Test
     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
     26   public String toString() {
     27     return "[" + getClass().getName() + " " + getN() + "]";
     28   }
     29 }
     30