Search in sources :

Example 6 with Database

use of org.opentosca.toscana.model.node.Database in project TOSCAna by StuPro-TOSCAna.

the class IntrinsicFunctionResolverTest method getInputTest.

@Test
public void getInputTest() {
    EffectiveModel model = new EffectiveModelFactory().create(GET_INPUT, logMock());
    Database database = (Database) model.getNodeMap().get("my_db");
    assertEquals("my_db_name", database.getDatabaseName());
}
Also used : Database(org.opentosca.toscana.model.node.Database) EffectiveModel(org.opentosca.toscana.model.EffectiveModel) EffectiveModelFactory(org.opentosca.toscana.model.EffectiveModelFactory) BaseUnitTest(org.opentosca.toscana.core.BaseUnitTest) Test(org.junit.Test)

Aggregations

Database (org.opentosca.toscana.model.node.Database)6 Test (org.junit.Test)5 BaseUnitTest (org.opentosca.toscana.core.BaseUnitTest)5 EffectiveModel (org.opentosca.toscana.model.EffectiveModel)5 EffectiveModelFactory (org.opentosca.toscana.model.EffectiveModelFactory)5 OperationVariable (org.opentosca.toscana.model.operation.OperationVariable)2 RootNode (org.opentosca.toscana.model.node.RootNode)1 WebApplication (org.opentosca.toscana.model.node.WebApplication)1 UnsupportedTypeException (org.opentosca.toscana.model.visitor.UnsupportedTypeException)1