MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / multiComparatorErrors

Method multiComparatorErrors

test/TestMultiAction.java:121–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 }
120
121 @Test
122 public void multiComparatorErrors() throws Exception {
123 PutRequest put1 = new PutRequest(TABLE, KEY, FAMILY, QUALIFIER, VALUE);
124 put1.region = region;
125 PutRequest put2 = new PutRequest(TABLE, KEY, FAMILY, QUALIFIER, VALUE);
126
127 // missing region
128 try {
129 MultiAction.MULTI_CMP.compare(put1, put2);
130 fail("Excepted an NPE");
131 } catch (NullPointerException e) { }
132
133 // null rpcs
134 try {
135 MultiAction.MULTI_CMP.compare(put1, null);
136 fail("Excepted an NPE");
137 } catch (NullPointerException e) { }
138
139 try {
140 MultiAction.MULTI_CMP.compare(null, put1);
141 fail("Excepted an NPE");
142 } catch (NullPointerException e) { }
143
144 // ctors for the RPCs *should* prevent null keys, codes and families
145 }
146
147 @Test
148 public void add() throws Exception {

Callers

nothing calls this directly

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected