@Test public void testDriver() { List<MConfig> driverConfig = new ArrayList<MConfig>(); driverConfig.add(new MConfig("driver-test", new ArrayList<MInput<?>>())); MDriverConfig mDriverConfig = new MDriverConfig(driverConfig); MDriver driver = new MDriver(mDriverConfig, DriverBean.CURRENT_DRIVER_VERSION); assertEquals(1, driver.getDriverConfig().getConfigs().size()); assertEquals("driver-test", driver.getDriverConfig().getConfigs().get(0).getName()); }
public MDriverConfig getDriverConfig() { return driverConfig; }
MDriver extends Configurable { public MDriverConfig getDriverConfig() { return driverConfig; } }
MDriver extends Configurable { public MDriverConfig getDriverConfig() { return driverConfig; } MDriver(MDriverConfig driverConfig, String version); }
MDriver extends Configurable { public MDriverConfig getDriverConfig() { return driverConfig; } MDriver(MDriverConfig driverConfig, String version); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); MDriverConfig getDriverConfig(); MConfigurableType getType(); String getUniqueName(); @Override MDriver clone(boolean cloneWithValue); String getVersion(); void setVersion(String version); }
MDriver extends Configurable { public MDriverConfig getDriverConfig() { return driverConfig; } MDriver(MDriverConfig driverConfig, String version); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); MDriverConfig getDriverConfig(); MConfigurableType getType(); String getUniqueName(); @Override MDriver clone(boolean cloneWithValue); String getVersion(); void setVersion(String version); static final String DRIVER_NAME; }