1 package test.factory; 2 3 import org.testng.annotations.Test; 4 5 import java.util.Map; 6 7 public class VerifyFactoryWithInstanceInfoTest { 8 @Test(dependsOnGroups = { "first" } ) 9 public void mainCheck() { 10 Map<Integer, Integer> numbers = FactoryWithInstanceInfoTest2.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