Skip to content

Commit

Permalink
Memo Tests - provide ConsistManager
Browse files Browse the repository at this point in the history
ReporterManager.class is already being tested for.
  • Loading branch information
icklesteve committed Jan 11, 2022
1 parent eac30f0 commit 25c115c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions java/src/jmri/jmrix/easydcc/EasyDccSystemConnectionMemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ public <B extends NamedBean> Comparator<B> getNamedBeanComparator(Class<B> type)
return new NamedBeanComparator<>();
}

@Override
public boolean provides(Class<?> c) {
if (!getDisabled() && c.equals(ConsistManager.class)) {
return true;
}
return super.provides(c);
}

@Override
public void dispose() {
et = null;
Expand Down
2 changes: 1 addition & 1 deletion java/test/jmri/jmrix/SystemConnectionMemoTestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void testCtor() {

@Test
public void testProvidesConsistManager() {
getTest(jmri.ReporterManager.class);
getTest(jmri.ConsistManager.class);
}

@Test
Expand Down

0 comments on commit 25c115c

Please sign in to comment.