Home | History | Annotate | Download | only in factory
      1 package test.factory;
      2 
      3 import org.testng.annotations.Test;
      4 
      5 import java.util.Map;
      6 
      7 public class VerifyFactoryTest {
      8   @Test(dependsOnGroups = { "first" } )
      9   public void mainCheck() {
     10     Map<Integer, Integer> numbers = FactoryTest2.getNumbers();
     11     assert null != numbers.get(42)
     12       : "Didn't find 42";
     13     assert null != numbers.get(43)
     14       : "Didn't find 43";
     15     assert 2 == numbers.size()
     16       : "Expected 2 numbers, found " + (numbers.size());
     17   }
     18 
     19 
     20 }
     21