void () { assertItems(""" ----group1---- 1 exec1: dbg1 dbg1 dbg2 2 exec2: dbg1 dbg1 dbg2 ----group2---- 1 exec1: dbg1 dbg1 dbg2 2 exec2: dbg1 dbg1 dbg2 """, new TestDebuggerProvider(new TestAttachGroup("group1", 1), "dbg1", "dbg2"), new TestDebuggerProvider(new TestAttachGroup("group2", 2), "dbg1", "dbg2")); assertItems(""" ----group2---- 1 exec1: dbg1 dbg1 dbg2 2 exec2: dbg1 dbg1 dbg2 ----group1---- 1 exec1: dbg1 dbg1 dbg2 2 exec2: dbg1 dbg1 dbg2 """, new TestDebuggerProvider(new TestAttachGroup("group1", 2), "dbg1", "dbg2"), new TestDebuggerProvider(new TestAttachGroup("group2", 1), "dbg1", "dbg2")); // sorting with default group assertItems(""" ----group2---- 1 exec1: dbg1 dbg1 dbg2 2 exec2: dbg1 dbg1 dbg2 -------- 1 exec1: dbg1 dbg1 dbg2 2 exec2: dbg1 dbg1 dbg2 ----group1---- 1 exec1: dbg1 dbg1 dbg2 2 exec2: dbg1 dbg1 dbg2 """, new TestDebuggerProvider(TEST_GROUP, "dbg1", "dbg2"), new TestDebuggerProvider(new TestAttachGroup("group1", 1), "dbg1", "dbg2"), new TestDebuggerProvider(new TestAttachGroup("group2", -1), "dbg1", "dbg2")); }