public void createEnvironment ( @ Observes ( precedence = 10 ) BeforeClass event , OpenShiftAdapter client , CubeOpenShiftConfiguration cubeOpenShiftConfiguration ) { final TestClass testClass = event . getTestClass ( ) ; log . info ( String . format ( "Creating environment for %s" , testClass . getName ( ) ) ) ; OpenShiftResourceFactory . createResources ( testClass . getName ( ) , client , testClass . getJavaClass ( ) , cubeOpenShiftConfiguration . getProperties ( ) ) ; classTemplateProcessor = new ClassTemplateProcessor ( client , cubeOpenShiftConfiguration , testClass ) ; final List < ? extends OpenShiftResource > templateResources = classTemplateProcessor . processTemplateResources ( ) ; templateDetailsProducer . set ( ( ) -> templateResources ) ; }
Create the environment as specified by