HomeSort by relevance Sort by last modified time
    Searched refs:Assert (Results 51 - 75 of 238) sorted by null

1 23 4 5 6 7 8 910

  /libcore/junit/src/main/java/junit/extensions/
TestDecorator.java 12 public class TestDecorator extends Assert implements Test {
  /libcore/luni/src/test/java/libcore/java/io/
OldAndroidPushbackReaderTest.java 23 import junit.framework.Assert;
37 Assert.assertEquals("PUSHAbCdEfGhIjKlMnOpQrStUvWxYz", read(a));
45 Assert.assertEquals("XAbCdEfGhI", read(b, 10));
52 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c));
OldAndroidLineNumberReaderTest.java 23 import junit.framework.Assert;
43 Assert.assertEquals(str, read(a));
53 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
60 Assert.assertEquals("bdfhjl\nprtvxz", skipRead(c));
67 Assert.assertEquals("AbCdEfGdEfGhIjKlM\nOpQrStUvWxYz", markRead(d, 3, 4));
OldAndroidPushbackInputStreamTest.java 23 import junit.framework.Assert;
37 Assert.assertEquals("pushAbCdEfGhIjKlM\nOpQrStUvWxYz", read(a));
45 Assert.assertEquals("XAbCdEfGhI", read(b, 10));
52 Assert.assertEquals("bdfhjl\nprtvxz", skipRead(c));
OldAndroidBufferedInputStreamTest.java 23 import junit.framework.Assert;
41 Assert.assertEquals(str, read(a));
48 Assert.assertEquals("AbCdEfGhIj", read(b, 10));
  /development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
AccessSourcerTest.java 21 import org.junit.Assert;
51 Assert.assertEquals("public abstract", s);
60 Assert.assertEquals("private static final", s);
  /frameworks/base/core/tests/coretests/src/android/os/
BuildTest.java 22 import junit.framework.Assert;
66 Assert.assertNotNull("TAGS", Build.TAGS); // TAGS is allowed to be empty.
68 Assert.assertTrue("TIME", Build.TIME > 0);
FileUtilsTest.java 34 import junit.framework.Assert;
74 Assert.fail("File was removed durning test" + e);
76 Assert.fail("Unexpected IOException: " + e);
79 Assert.assertTrue(mTestFile.exists());
80 Assert.assertTrue(FileUtils.getFileStatus(mTestFile.getPath(), null));
85 Assert.assertEquals(4, status1.size);
100 Assert.fail("File was removed durning test" + e);
102 Assert.fail("Unexpected IOException: " + e);
108 Assert.assertEquals(8, status2.size);
109 Assert.assertTrue(status2.mtime > status1.mtime)
    [all...]
  /packages/apps/Camera/src/com/android/camera/
CameraHolder.java 19 import static com.android.camera.Util.Assert;
122 Assert(mUsers == 0);
171 Assert(mUsers == 1);
178 Assert(mUsers == 0);
179 Assert(mCameraDevice != null);
198 Assert(mUsers == 1 || mUsers == 0);
  /frameworks/base/tests/CoreTests/android/core/
MiscRegressionTest.java 19 import junit.framework.Assert;
52 Assert.assertEquals("Default keystore type must be Bouncy Castle", "BKS", type);
56 Assert.assertNotNull("Keystore must not be null", store);
63 Assert.assertNotNull("Keystore must not be null", store);
88 Assert.assertNotNull("Must hava a Java context ClassLoader",
155 Assert.assertSame("Classes must be equal", trafficClass, redClass);
156 Assert.assertNotSame("Classes must be different", trafficClass, yellowClass);
157 Assert.assertNotSame("Classes must be different", trafficClass, greenClass);
158 Assert.assertNotSame("Classes must be different", yellowClass, greenClass);
160 Assert.assertTrue("Must be an enum", trafficClass.isEnum())
    [all...]
  /cts/tools/signature-tools/test/signature/comparator/util/
AbstractComparatorTest.java 19 import static org.junit.Assert.assertEquals;
20 import static org.junit.Assert.assertNotNull;
  /cts/tools/signature-tools/test/signature/converter/dex/
GenericSignatureParserTest.java 19 import static org.junit.Assert.assertEquals;
20 import static org.junit.Assert.assertSame;
  /dalvik/dx/src/junit/framework/
ComparisonFailure.java 4 * Thrown when an assert equals for Strings failed.
32 return Assert.format(super.getMessage(), fExpected, fActual);
66 return Assert.format(super.getMessage(), expected, actual);
  /dalvik/tests/021-string2/src/junit/framework/
ComparisonFailure.java 4 * Thrown when an assert equals for Strings failed.
32 return Assert.format(super.getMessage(), fExpected, fActual);
66 return Assert.format(super.getMessage(), expected, actual);
  /dalvik/tests/082-inline-execute/src/junit/framework/
ComparisonFailure.java 4 * Thrown when an assert equals for Strings failed.
32 return Assert.format(super.getMessage(), fExpected, fActual);
66 return Assert.format(super.getMessage(), expected, actual);
  /development/tools/emulator/test-apps/GpsLocationTest/src/com/android/emulator/gps/test/
GpsLocationTest.java 26 import junit.framework.Assert;
67 Assert.fail();
  /libcore/junit/src/main/java/junit/framework/
ComparisonFailure.java 4 * Thrown when an assert equals for Strings failed.
32 return Assert.format(super.getMessage(), fExpected, fActual);
66 return Assert.format(super.getMessage(), expected, actual);
  /libcore/support/src/test/java/libcore/dalvik/system/
CloseGuardTester.java 28 import junit.framework.Assert;
62 Assert.fail("CloseGuard detected unclosed resources!");
  /frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
UsimDataDownloadCommands.java 29 import junit.framework.Assert;
59 Assert.assertFalse("expectAcknowledgeGsmSms called twice", mExpectingAcknowledgeGsmSms);
71 Assert.assertFalse("expectAcknowledgeGsmSms called twice", mExpectingAcknowledgeGsmSms);
85 Assert.assertFalse("expectSendEnvelope called twice", mExpectingSendEnvelope);
101 Assert.assertFalse("expecting SMS acknowledge call", mExpectingAcknowledgeGsmSms);
102 Assert.assertFalse("expecting send envelope call", mExpectingSendEnvelope);
109 Assert.assertTrue("unexpected call to acknowledge SMS", mExpectingAcknowledgeGsmSms);
110 Assert.assertEquals(mExpectingAcknowledgeGsmSmsSuccess, success);
111 Assert.assertEquals(mExpectingAcknowledgeGsmSmsFailureCause, cause);
125 Assert.assertTrue("unexpected call to acknowledge SMS", mExpectingAcknowledgeGsmSms)
    [all...]
  /packages/apps/Email/tests/src/com/android/email/activity/
UIControllerTwoPaneRefreshTaskTest.java 29 import junit.framework.Assert;
168 Assert.assertEquals(mExpectedAccountId, accountId);
174 Assert.assertEquals(mExpectedAccountId, accountId);
180 Assert.assertEquals(mExpectedMailboxId, mailboxId);
186 Assert.assertEquals(mExpectedMailboxId, mailboxId);
MailboxFragmentAdapterTest.java 30 import junit.framework.Assert;
117 Assert.assertTrue(cursor.getLong(cursor.getColumnIndex("_id")) >= 0);
118 Assert.assertEquals(id, MailboxFragmentAdapter.getId(cursor));
119 Assert.assertEquals(type, MailboxFragmentAdapter.getType(cursor));
120 Assert.assertEquals(count, MailboxFragmentAdapter.getMessageCount(cursor));
121 Assert.assertEquals(count, MailboxFragmentAdapter.getUnreadCount(cursor));
122 Assert.assertEquals(Account.ACCOUNT_ID_COMBINED_VIEW,
  /cts/tools/signature-tools/test/signature/comparator/
PackageCompareTest.java 19 import static org.junit.Assert.assertEquals;
20 import static org.junit.Assert.assertNotNull;
21 import static org.junit.Assert.assertNull;
  /external/chromium/third_party/libjingle/source/talk/base/
common.h 84 inline bool Assert(bool result, const char * function, const char * file,
100 #ifndef ASSERT
101 #define ASSERT(x) (void)talk_base::Assert((x),__FUNCTION__,__FILE__,__LINE__,#x)
105 #define VERIFY(x) talk_base::Assert((x),__FUNCTION__,__FILE__,__LINE__,#x)
116 #ifndef ASSERT
117 #define ASSERT(x) (void)0
  /cts/tools/dex-tools/test/dex/reader/
DexTestsCommon.java 19 import static org.junit.Assert.assertFalse;
20 import static org.junit.Assert.assertNotNull;
21 import static org.junit.Assert.assertTrue;
22 import static org.junit.Assert.fail;
LargeDexTests.java 19 import static org.junit.Assert.assertEquals;

Completed in 1748 milliseconds

1 23 4 5 6 7 8 910