List of usage examples for org.springframework.context.annotation AnnotationConfigApplicationContext AnnotationConfigApplicationContext
public AnnotationConfigApplicationContext(String... basePackages)
From source file:com.karriem.tp2.immutable_domain_model_assignment.DomainTest.EmployeesTest.CleaningStaffNGTest.java
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(CleaningStaffConfig.class); service = (CleaningStaffService) ctx.getBean("cleaner"); }
From source file:com.karriem.tp2.immutable_domain_model_assignment.DomainTest.TreatmentTest.ICUTreatmentConfigTest.java
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(ICUTreatmentConfig.class); service = (ICUTreatmentService) ctx.getBean("ICUTreat"); }
From source file:cputgroup3a.objectcomparison.ObjectComparisonTest.java
@BeforeClass public static void setUpClass() throws Exception { ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class); obj = (ObjectComparison) ctx.getBean("Obj"); }
From source file:repositoryTests.MedicineRepositoryTestNGTest.java
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(ConnectionConfig.class); ingredient = new Ingredient.Builder().allergen(true).ingredientName("Nuts").build(); ingredientList = new ArrayList<Ingredient>(); ingredientList.add(ingredient);/* www.j a v a 2 s .c o m*/ }
From source file:serviceTests.ViewCustomerPurchasesTestNGTest.java
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(ConnectionConfig.class); viewCustomerPurchases = new ViewCustomerPurchases(); }
From source file:com.karriem.tp2.immutable_domain_model_assignment.DomainTest.EmployeesTest.GeneralStaffNGTest.java
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(GeneralStaffConfig.class); service = (GeneralStaffService) ctx.getBean("gen"); }
From source file:com.karriem.tp2.immutable_domain_model_assignment.DomainTest.PatientsTest.GeneralPatientNGTest.java
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(GeneralPatientConfig.class); service = (GeneralPatientService) ctx.getBean("genPat"); }
From source file:com.karriem.tp2.immutable_domain_model_assignment.DomainTest.PaymentMethodTest.CreditCardNGTest.java
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(CreditCardConfig.class); service = (CreditCardService) ctx.getBean("credit"); }
From source file:com.karriem.tp2.immutable_domain_model_assignment.DomainTest.MedicalAidTest.MedicalAidNGTest.java
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(MedicalAidConfig.class); service = (MedicalAidService) ctx.getBean("aid"); }
From source file:com.tracy.designprinciples.srp.correction.SRPCorrectionTest.java
@BeforeClass public static void setUpClass() throws Exception { ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class); service = (StudentReports) ctx.getBean("SRPStud1"); ApplicationContext ctx1 = new AnnotationConfigApplicationContext(AppConfig.class); student1 = (Student1) ctx1.getBean("SRPStud"); }