Skip to content

Commit 7e725e8

Browse files
committed
tweak: additional unit tests
1 parent 97f566f commit 7e725e8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/com/danga/MemCached/test/UnitTests.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,20 @@ public static void test14() {
134134
mc.storeCounter( "counterTest123", 0 );
135135
assert mc.keyExists( "counterTest123" );
136136
}
137+
138+
public static void test15() {
139+
140+
Map stats = mc.statsItems();
141+
assert stats != null;
142+
143+
stats = mc.statsSlabs();
144+
assert stats != null;
145+
}
146+
147+
public static void test16() {
148+
assert !mc.set( "foo", null );
149+
}
150+
137151

138152
/**
139153
* This runs through some simple tests of the MemCacheClient.
@@ -172,5 +186,7 @@ public static void main(String[] args) {
172186
test12();
173187
test13();
174188
test14();
189+
test15();
190+
test16();
175191
}
176192
}

0 commit comments

Comments
 (0)