/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/check/ |
Assert.java | 16 * <code>Assert</code> is useful for for embedding runtime sanity checks in code. The predicate 27 public final class Assert { 33 private Assert() {
|
/external/junit/src/junit/framework/ |
Assert.java | 4 * A set of assert methods. Messages are only displayed when an assert fails. 7 public class Assert { 11 protected Assert() {
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/ |
CustomMethodInlineTableTest.java | 50 import org.junit.Assert; 77 Assert.assertEquals(Opcode.INVOKE_VIRTUAL, deodexedInstruction.getOpcode()); 80 Assert.assertEquals(method, methodReference); 104 Assert.assertEquals(Opcode.INVOKE_STATIC, deodexedInstruction.getOpcode()); 107 Assert.assertEquals(method, methodReference); 131 Assert.assertEquals(Opcode.INVOKE_DIRECT, deodexedInstruction.getOpcode()); 134 Assert.assertEquals(method, methodReference);
|
CommonSuperclassTest.java | 35 import junit.framework.Assert; 97 Assert.assertSame(commonSuperclassProto, type1Proto.getCommonSuperclass(type2Proto)); 98 Assert.assertSame(commonSuperclassProto, type2Proto.getCommonSuperclass(type1Proto)); 128 Assert.assertEquals(
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/builder/ |
FixGotoTest.java | 4 import junit.framework.Assert; 34 Assert.assertEquals(502, instructions.size()); 36 Assert.assertEquals(Opcode.GOTO_16, instructions.get(0).getOpcode()); 37 Assert.assertEquals(502, ((OffsetInstruction)instructions.get(0)).getCodeOffset()); 57 Assert.assertEquals(70002, instructions.size()); 59 Assert.assertEquals(Opcode.GOTO_32, instructions.get(0).getOpcode()); 60 Assert.assertEquals(70003, ((OffsetInstruction)instructions.get(0)).getCodeOffset()); 80 Assert.assertEquals(70002, instructions.size()); 82 Assert.assertEquals(Opcode.GOTO_32, instructions.get(0).getOpcode()); 83 Assert.assertEquals(70003, ((OffsetInstruction)instructions.get(0)).getCodeOffset()) [all...] |
FixOffsetsTest.java | 35 import junit.framework.Assert; 102 Assert.assertEquals(1003, instructions.size()); 104 Assert.assertEquals(Opcode.GOTO_16, instructions.get(0).getOpcode()); 105 Assert.assertEquals(1004, ((OffsetInstruction)instructions.get(0)).getCodeOffset()); 107 Assert.assertEquals(Opcode.GOTO_16, instructions.get(501).getOpcode()); 108 Assert.assertEquals(502, ((OffsetInstruction)instructions.get(501)).getCodeOffset()); 112 Assert.assertEquals(1, exceptionHandlers.size()); 113 Assert.assertEquals(252, exceptionHandlers.get(0).getStartCodeAddress()); 114 Assert.assertEquals(752, exceptionHandlers.get(0).getCodeUnitCount()); 116 Assert.assertEquals(1, exceptionHandlers.get(0).getExceptionHandlers().size()) [all...] |
/frameworks/base/test-runner/src/android/test/ |
MoreAsserts.java | 19 import junit.framework.Assert; 53 Assert.assertTrue( 350 Assert.assertEquals(message, Arrays.asList(expected), actualList); 476 Assert.assertTrue( 483 Assert.assertFalse( 489 Assert.assertEquals(message, expectedResult, lhs.equals(rhs)); 492 Assert.assertEquals(message, expectedResult, rhs.equals(lhs)); 501 Assert.assertTrue(hashMessage, lhs.hashCode() == rhs.hashCode()); 573 Assert.fail((userMessage == null)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
SignificantMotionTestActivity.java | 22 import junit.framework.Assert; 158 Assert.assertTrue( 162 Assert.assertTrue( 224 Assert.assertNotNull(eventArrivalMessage, event); 231 Assert.assertEquals(eventTypeMessage, Sensor.TYPE_SIGNIFICANT_MOTION, eventType); 240 Assert.assertEquals(valuesLengthMessage, EVENT_VALUES_LENGTH, valuesLength); 248 Assert.assertEquals(valuesMessage, EXPECTED_EVENT_VALUE, value); 265 Assert.assertNull(eventMessage, event);
|
/cts/tests/tests/gesture/src/android/gesture/cts/ |
LineGestureStrokeHelper.java | 25 import junit.framework.Assert; 54 * Helper method to assert expected values for a path derived from createLineGesture 60 Assert.assertFalse(linePath.isEmpty()); 66 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.bottom); 67 Assert.assertEquals(LINE_START_POINT, bounds.left); 68 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.right); 69 Assert.assertEquals(LINE_START_POINT, bounds.top); 73 * Helper method to assert expected values for a bounds derived from createLineGesture 80 Assert.assertEquals(LINE_END_POINT, bounds.bottom); 81 Assert.assertEquals(LINE_START_POINT, bounds.left) [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
StandardDeviationVerification.java | 19 import junit.framework.Assert; 124 Assert.fail(String.format("Standard deviation out of range: stddev=%s (expected %s)", 152 Assert.assertEquals(mMeans.length, event.values.length); 153 Assert.assertEquals(mM2s.length, event.values.length);
|
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/ |
SignatureSourcerTest.java | 21 import org.junit.Assert; 51 Assert.assertEquals( 63 Assert.assertEquals( 75 Assert.assertNotNull(params); 79 Assert.assertArrayEquals( 89 Assert.assertTrue(mSourcer.hasFormalsContent()); 92 Assert.assertEquals( 102 Assert.assertTrue(mSourcer.hasFormalsContent()); 105 Assert.assertEquals( 116 Assert.assertTrue(mSourcer.hasFormalsContent()) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
common.h | 92 // and allow applications to override the assert behavior. 102 // Assert (and from the ASSERT macro in debug mode) before any other action 112 // Sets a custom assert logger to be used instead of the default LogAssert 113 // behavior. To clear the custom assert logger, pass NULL for |logger| and the 114 // default behavior will be restored. Only one custom assert logger can be set 129 inline bool Assert(bool result, const char* function, const char* file, 145 #ifndef ASSERT 146 #define ASSERT(x) \ 147 (void)talk_base::Assert((x), __FUNCTION__, __FILE__, __LINE__, #x [all...] |
/external/chromium_org/third_party/webrtc/base/ |
common.h | 74 // and allow applications to override the assert behavior. 84 // Assert (and from the ASSERT macro in debug mode) before any other action 94 // Sets a custom assert logger to be used instead of the default LogAssert 95 // behavior. To clear the custom assert logger, pass NULL for |logger| and the 96 // default behavior will be restored. Only one custom assert logger can be set 107 inline bool Assert(bool result, const char* function, const char* file, 123 #ifndef ASSERT 124 #define ASSERT(x) \ 125 (void)rtc::Assert((x), __FUNCTION__, __FILE__, __LINE__, #x [all...] |
/external/junit/src/org/junit/rules/ |
ExpectedException.java | 9 import org.junit.Assert; 114 Assert.assertThat(e, fMatcher);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SmsManagerTest.java | 3 import junit.framework.Assert; 40 Assert.assertNotNull(shadowSmsManager); 50 Assert.assertEquals(testDestinationAddress, lastParams.getDestinationAddress()); 51 Assert.assertEquals(testScAddress, lastParams.getScAddress()); 52 Assert.assertEquals(testText, lastParams.getText()); 59 Assert.assertNull(shadowSmsManager.getLastSentTextMessageParams());
|
/external/smali/dexlib2/src/accessorTest/java/org/jf/dexlib2/ |
AccessorTest.java | 35 import junit.framework.Assert; 81 Assert.assertNotNull(url); 99 Assert.assertNotNull(accessorTypesClass); 100 Assert.assertNotNull(accessorsClass); 111 Assert.assertNotNull(methodImpl); 121 Assert.assertNotNull(String.format("Could not resolve accessor for %s_%s", type, operation), 125 Assert.assertEquals(operationType, accessedMember.accessedMemberType); 127 Assert.assertEquals(String.format("%s_val", type),
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/dexbacked/ |
BaseDexBufferTest.java | 34 import junit.framework.Assert; 46 Assert.assertEquals(0x44332211, dexBuf.readSmallUint(0)); 49 Assert.assertEquals(0, dexBuf.readSmallUint(0)); 52 Assert.assertEquals(0x7fffffff, dexBuf.readSmallUint(0)); 76 Assert.assertEquals(0x44332211, dexBuf.readSmallUint(0)); 79 Assert.assertEquals(0, dexBuf.readSmallUint(0)); 82 Assert.assertEquals(0x7fffffff, dexBuf.readSmallUint(0)); 85 Assert.assertEquals(-1, dexBuf.readOptionalUint(0)); 109 Assert.assertEquals(dexBuf.readUshort(0), 0x2211); 112 Assert.assertEquals(dexBuf.readUshort(0), 0) [all...] |
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/ |
JumboStringConversionTest.java | 55 import org.junit.Assert; 98 Assert.assertNotNull(classDef); 101 Assert.assertNotNull(method); 104 Assert.assertNotNull(impl); 107 Assert.assertEquals(66001, instructions.size()); 110 Assert.assertEquals(Opcode.CONST_STRING, instructions.get(i).getOpcode()); 111 Assert.assertEquals(String.format("%08d", i), 115 Assert.assertEquals(Opcode.CONST_STRING_JUMBO, instructions.get(i).getOpcode()); 116 Assert.assertEquals(String.format("%08d", i), 119 Assert.assertEquals(Opcode.RETURN_VOID, instructions.get(66000).getOpcode()) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidByteArrayInputStreamTest.java | 22 import junit.framework.Assert; 38 Assert.assertEquals(str, read(a)); 39 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 40 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c)); 41 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
|
OldAndroidCharArrayReaderTest.java | 22 import junit.framework.Assert; 37 Assert.assertEquals(str, read(a)); 38 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 39 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c)); 40 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
|
OldAndroidStringReaderTest.java | 22 import junit.framework.Assert; 35 Assert.assertEquals(str, read(a)); 36 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 37 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c)); 38 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
|
/cts/tests/tests/graphics2/src/android/graphics2/cts/ |
TextureViewCameraActivity.java | 34 import junit.framework.Assert; 51 Assert.assertTrue(mTextureView.getLayerType() == View.LAYER_TYPE_HARDWARE); 52 Assert.assertTrue(mTextureView.isAvailable()); 53 Assert.assertNotNull(mTextureView.getSurfaceTexture()); 54 Assert.assertTrue(mTextureView.getSurfaceTextureListener() == this); 55 Assert.assertTrue(mTextureView.isOpaque()); 77 Assert.fail(); 96 Assert.assertEquals(mHeight, bitmap.getHeight()); 97 Assert.assertEquals(mWidth, bitmap.getWidth());
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/ |
ReflectionUtils.java | 15 import org.eclipse.wb.internal.core.utils.check.Assert; 55 Assert.isNotNull(type); 162 Assert.isNotNull(method); 179 Assert.isNotNull(name); 180 Assert.isNotNull(parameterTypes); 203 Assert.isNotNull(clazz); 204 Assert.isNotNull(signature); 220 Assert.isNotNull(object); 221 Assert.isNotNull(arguments); 227 Assert.isNotNull(method, "Can not find method " + signature + " in " + refClass) [all...] |
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/util/ |
TryListBuilderTest.java | 35 import junit.framework.Assert; 59 Assert.assertEquals(expected, tryBlocks); 73 Assert.assertEquals(expected, tryBlocks); 87 Assert.assertEquals(expected, tryBlocks); 101 Assert.assertEquals(expected, tryBlocks); 119 Assert.assertEquals(expected, tryBlocks); 137 Assert.assertEquals(expected, tryBlocks); 155 Assert.assertEquals(expected, tryBlocks); 173 Assert.assertEquals(expected, tryBlocks); 191 Assert.assertEquals(expected, tryBlocks) [all...] |
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
BaseTest.java | 43 import org.junit.Assert; 888 public void assertEquals(String msg, Object a, Object b) { try {Assert.assertEquals(msg,a,b);} catch (Error e) {lastTestFailed=true; throw e;} } 889 public void assertEquals(Object a, Object b) { try {Assert.assertEquals(a,b);} catch (Error e) {lastTestFailed=true; throw e;} } 890 public void assertEquals(String msg, long a, long b) { try {Assert.assertEquals(msg,a,b);} catch (Error e) {lastTestFailed=true; throw e;} } 891 public void assertEquals(long a, long b) { try {Assert.assertEquals(a,b);} catch (Error e) {lastTestFailed=true; throw e;} } 893 public void assertTrue(String msg, boolean b) { try {Assert.assertTrue(msg,b);} catch (Error e) {lastTestFailed=true; throw e;} } 894 public void assertTrue(boolean b) { try {Assert.assertTrue(b);} catch (Error e) {lastTestFailed=true; throw e;} } 896 public void assertFalse(String msg, boolean b) { try {Assert.assertFalse(msg,b);} catch (Error e) {lastTestFailed=true; throw e;} } 897 public void assertFalse(boolean b) { try {Assert.assertFalse(b);} catch (Error e) {lastTestFailed=true; throw e;} } 899 public void assertNotNull(String msg, Object p) { try {Assert.assertNotNull(msg, p);} catch (Error e) {lastTestFailed=true; throw e;} [all...] |