@Test public void testInitialization() { List<MConfig> configs = new ArrayList<MConfig>(); MLinkConfig linkConfig = new MLinkConfig(configs); List<MConfig> testConfig = new ArrayList<MConfig>(); assertEquals(testConfig, linkConfig.getConfigs()); MLinkConfig linkConfig2 = new MLinkConfig(testConfig); assertEquals(linkConfig2, linkConfig); MConfig c = new MConfig("test", null); testConfig.add(c); assertFalse(linkConfig.equals(linkConfig2)); }
@Override public boolean equals(Object other) { if (other == this) { return true; } return super.equals(other); }
MLinkConfig extends MConfigList { @Override public boolean equals(Object other) { if (other == this) { return true; } return super.equals(other); } }
MLinkConfig extends MConfigList { @Override public boolean equals(Object other) { if (other == this) { return true; } return super.equals(other); } MLinkConfig(List<MConfig> configs); }
MLinkConfig extends MConfigList { @Override public boolean equals(Object other) { if (other == this) { return true; } return super.equals(other); } MLinkConfig(List<MConfig> configs); @Override String toString(); @Override boolean equals(Object other); @Override MLinkConfig clone(boolean cloneWithValue); }
MLinkConfig extends MConfigList { @Override public boolean equals(Object other) { if (other == this) { return true; } return super.equals(other); } MLinkConfig(List<MConfig> configs); @Override String toString(); @Override boolean equals(Object other); @Override MLinkConfig clone(boolean cloneWithValue);  }