GP-0: Fixing DebuggerLogicalBreakpointServiceTest

This commit is contained in:
Dan
2021-04-09 14:20:55 -04:00
parent c18430e491
commit 7b7f88f06d
12 changed files with 217 additions and 139 deletions

View File

@@ -303,7 +303,7 @@ public class DefaultDebuggerObjectModelTest implements AsyncTestUtils {
public void testCreationAndModelListenerWithoutReplay() throws Throwable {
EventRecordingListener listener = new EventRecordingListener();
model.addModelListener(listener, false);
waitOn(model.clientExecutor);
waitOn(model.flushEvents());
waitOn(model.fetchModelRoot());
listener.record.clear();
@@ -313,7 +313,7 @@ public class DefaultDebuggerObjectModelTest implements AsyncTestUtils {
fakeA.setElements(List.of(fakeA1rb), "Init");
model.root.setAttributes(List.of(fakeA), Map.of(), "Init");
waitOn(model.clientExecutor);
waitOn(model.flushEvents());
assertEquals(List.of(
new ImmutablePair<>("created", fakeA),
@@ -335,7 +335,7 @@ public class DefaultDebuggerObjectModelTest implements AsyncTestUtils {
EventRecordingListener listener = new EventRecordingListener();
model.addModelListener(listener, true);
waitOn(model.clientExecutor);
waitOn(model.flushEvents());
assertEquals(List.of(
new ImmutablePair<>("created", model.root),

View File

@@ -226,7 +226,7 @@
<schema name="BreakpointContainer" canonical="yes" elementResync="NEVER" attributeResync="NEVER">
<interface name="BreakpointSpecContainer" />
<interface name="BreakpointLocationContainer" />
<element schema="BreakpointLocation" />
<element schema="Breakpoint" />
<attribute name="_supported_breakpoint_kinds" schema="SET_BREAKPOINT_KIND" required="yes" hidden="yes" />
<attribute name="_modified" schema="BOOL" hidden="yes" />
<attribute name="_display" schema="STRING" hidden="yes" />
@@ -292,7 +292,8 @@
<attribute name="_order" schema="INT" hidden="yes" />
<attribute schema="ANY" />
</schema>
<schema name="BreakpointLocation" canonical="yes" elementResync="NEVER" attributeResync="NEVER">
<schema name="Breakpoint" canonical="yes" elementResync="NEVER" attributeResync="NEVER">
<interface name="BreakpointSpec" />
<interface name="BreakpointLocation" />
<interface name="Deletable" />
<element schema="OBJECT" />
@@ -301,7 +302,7 @@
<attribute name="_kinds" schema="SET_BREAKPOINT_KIND" required="yes" hidden="yes" />
<attribute name="_container" schema="BreakpointContainer" />
<attribute name="_affects" schema="LIST_OBJECT" hidden="yes" />
<attribute name="_spec" schema="BreakpointLocation" />
<attribute name="_spec" schema="Breakpoint" />
<attribute name="_length" schema="INT" hidden="yes" />
<attribute name="_address" schema="ADDRESS" required="yes" hidden="yes" />
<attribute name="_modified" schema="BOOL" hidden="yes" />