Search in sources :

Example 6 with Model

use of com.yahoo.config.model.api.Model in project vespa by vespa-engine.

the class ApplicationConvergenceCheckerTest method setup.

@Before
public void setup() throws IOException, SAXException, InterruptedException {
    Model mockModel = MockModel.createContainer("localhost", 1337);
    application = new Application(mockModel, new ServerCache(), 3, Version.fromIntValues(0, 0, 0), MetricUpdater.createTestUpdater(), appId);
}
Also used : ServerCache(com.yahoo.vespa.config.server.ServerCache) Model(com.yahoo.config.model.api.Model) Before(org.junit.Before)

Aggregations

Model (com.yahoo.config.model.api.Model)6 Before (org.junit.Before)3 Test (org.junit.Test)3 NullConfigModelRegistry (com.yahoo.config.model.NullConfigModelRegistry)2 HostInfo (com.yahoo.config.model.api.HostInfo)2 HostProvisioner (com.yahoo.config.model.api.HostProvisioner)2 ModelContext (com.yahoo.config.model.api.ModelContext)2 ModelCreateResult (com.yahoo.config.model.api.ModelCreateResult)2 ServiceInfo (com.yahoo.config.model.api.ServiceInfo)2 ApplicationId (com.yahoo.config.provision.ApplicationId)2 Collections (java.util.Collections)2 List (java.util.List)2 Assert.assertTrue (org.junit.Assert.assertTrue)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 Version (com.yahoo.component.Version)1 ApplicationPackage (com.yahoo.config.application.api.ApplicationPackage)1 MockModelContext (com.yahoo.config.model.MockModelContext)1 ApplicationInfo (com.yahoo.config.model.api.ApplicationInfo)1 ConfigServerSpec (com.yahoo.config.model.api.ConfigServerSpec)1 SuperModel (com.yahoo.config.model.api.SuperModel)1