Expose transaction concurrency indexes in streams and generators
This commit is contained in:
1 parent
40d402ce8a
commit
1f861cefb8
13 files changed
+264
-16
No files matched your search
+16
@@ -32,8 +32,12 @@ public class FtrRelationTest {
|
||||
Loader loader = new Loader();
|
||||
ITx proxy = proxy(loader);
|
||||
TxTestSupport.Tx real = new TxTestSupport.Tx(1, 10, 50);
|
||||
real.streamRow = 2;
|
||||
real.generatorRow = 1;
|
||||
loader.available = real;
|
||||
assertEquals(50, proxy.getEndTime());
|
||||
assertEquals(2, proxy.getConcurrencyIndxInStream());
|
||||
assertEquals(1, proxy.getConcurrencyIdxInGen());
|
||||
assertEquals(10, proxy.getBeginTime());
|
||||
assertSame(real.getAttributes(), proxy.getAttributes());
|
||||
assertEquals(0, proxy.compareTo(proxy));
|
||||
@@ -43,6 +47,18 @@ public class FtrRelationTest {
|
||||
assertEquals(-Integer.signum(later.compareTo(proxy)), Integer.signum(proxy.compareTo(later)));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void resolvesFromConcurrencyGetter() throws Exception {
|
||||
Loader loader = new Loader();
|
||||
ITx proxy = proxy(loader);
|
||||
TxTestSupport.Tx real = new TxTestSupport.Tx(1, 10, 50);
|
||||
real.streamRow = 3;
|
||||
real.generatorRow = 1;
|
||||
loader.available = real;
|
||||
assertEquals(1, proxy.getConcurrencyIdxInGen());
|
||||
assertEquals(3, proxy.getConcurrencyIndxInStream());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void missingEndpointFailsExplicitly() throws Exception {
|
||||
ITx proxy = proxy(new Loader());
|
||||
|
||||
Reference in new issue
Block a user