Search in sources :

Example 1 with ModelCreatingStage

use of com.alipay.sofa.isle.stage.ModelCreatingStage in project sofa-boot by alipay.

the class ModelCreatingStageTest method test.

@Test
public void test() throws Exception {
    applicationContext.getBean("modelCreatingStage", ModelCreatingStage.class).process();
    ApplicationRuntimeModel application = applicationContext.getBean(SofaBootConstants.APPLICATION, ApplicationRuntimeModel.class);
    Assert.assertNotNull(application.getSofaRuntimeContext());
}
Also used : ModelCreatingStage(com.alipay.sofa.isle.stage.ModelCreatingStage) ApplicationRuntimeModel(com.alipay.sofa.isle.ApplicationRuntimeModel) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 2 with ModelCreatingStage

use of com.alipay.sofa.isle.stage.ModelCreatingStage in project sofa-boot by sofastack.

the class ModelCreatingStageTest method test.

@Test
public void test() throws Exception {
    applicationContext.getBean("modelCreatingStage", ModelCreatingStage.class).process();
    ApplicationRuntimeModel application = applicationContext.getBean(SofaBootConstants.APPLICATION, ApplicationRuntimeModel.class);
    Assert.assertNotNull(application.getSofaRuntimeContext());
}
Also used : ModelCreatingStage(com.alipay.sofa.isle.stage.ModelCreatingStage) ApplicationRuntimeModel(com.alipay.sofa.isle.ApplicationRuntimeModel) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

ApplicationRuntimeModel (com.alipay.sofa.isle.ApplicationRuntimeModel)2 ModelCreatingStage (com.alipay.sofa.isle.stage.ModelCreatingStage)2 Test (org.junit.Test)2 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)2