OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Assert
(Results
76 - 100
of
238
) sorted by null
1
2
3
4
5
6
7
8
9
10
/frameworks/base/core/tests/coretests/src/android/os/
SystemPropertiesTest.java
19
import static junit.framework.
Assert
.assertEquals;
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
ExceptionTextView.java
19
import junit.framework.
Assert
;
/libcore/luni/src/test/java/libcore/java/io/
OldAndroidDataInputStreamTest.java
25
import junit.framework.
Assert
;
39
Assert
.assertEquals(str, read(a));
46
Assert
.assertEquals("AbCdEfGhIj", read(b, 10));
53
Assert
.assertEquals("bdfhjl\np\rtvxz", skipRead(c));
/libcore/luni/src/test/java/tests/api/org/apache/harmony/kernel/dalvik/
ThreadsTest.java
21
import junit.framework.
Assert
;
194
Assert
.fail("parker hanging");
220
Assert
.fail("expected duration: " + expectedMillis +
223
Assert
.fail("expected duration: " + expectedMillis +
/packages/apps/Contacts/tests/src/com/android/contacts/util/
FakeAsyncTaskExecutor.java
28
import junit.framework.
Assert
;
159
Assert
.assertEquals("Expected one task " + identifier + ", got " + tasks, 1, tasks.size());
175
Assert
.assertTrue("There were no tasks with identifier " + identifier, tasks.size() > 0);
203
Assert
.assertTrue(latch.await(mTimeoutMs, TimeUnit.MILLISECONDS));
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
MockTask.java
19
import static junit.framework.
Assert
.assertEquals;
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/repository/
CaptureErrorHandler.java
52
junit.framework.
Assert
.fail(mErrors);
/external/apache-harmony/support/src/test/java/tests/support/
Support_HttpServer.java
27
import junit.framework.
Assert
;
133
Assert
.fail("Test server error on HTTP Server on port "
240
Assert
.fail("Duplicate Content-Length: " + line);
248
Assert
.fail("Duplicate Transfer-Encoding: "
254
Assert
.fail("Unknown Transfer-Encoding: "
261
Assert
.fail("Found both Content-Length and Transfer-Encoding");
422
Assert
.assertTrue("unexpected header: " + header,
424
Assert
.assertTrue("invalid header: " + header,
/external/junit/src/junit/framework/
ComparisonCompactor.java
23
return
Assert
.format(message, fExpected, fActual);
29
return
Assert
.format(message, expected, actual);
TestCase.java
72
public abstract class TestCase extends
Assert
implements Test {
144
* Override to run the test and
assert
its state.
/frameworks/base/core/java/android/webkit/
Network.java
33
import junit.framework.
Assert
;
156
Assert
.assertTrue(Thread.currentThread().
290
Assert
.assertTrue(isValidProxySet());
310
Assert
.assertTrue(isValidProxySet());
357
if (DebugFlags.NETWORK)
Assert
.assertNotNull(loader);
378
if (DebugFlags.NETWORK)
Assert
.assertNotNull(loader);
/frameworks/base/test-runner/src/android/test/
MoreAsserts.java
20
import junit.framework.
Assert
;
54
Assert
.assertTrue(
324
Assert
.assertEquals(message, Arrays.asList(expected), actualList);
450
Assert
.assertTrue(
457
Assert
.assertFalse(
463
Assert
.assertEquals(message, expectedResult, lhs.equals(rhs));
466
Assert
.assertEquals(message, expectedResult, rhs.equals(lhs));
475
Assert
.assertTrue(hashMessage, lhs.hashCode() == rhs.hashCode());
547
Assert
.fail((userMessage == null)
/cts/tools/signature-tools/test/signature/converter/
ConvertEnumTest.java
19
import static org.junit.
Assert
.assertEquals;
20
import static org.junit.
Assert
.assertNotNull;
21
import static org.junit.
Assert
.assertSame;
22
import static org.junit.
Assert
.assertTrue;
23
import static org.junit.
Assert
.assertFalse;
ConvertWildcardTest.java
19
import static org.junit.
Assert
.assertEquals;
20
import static org.junit.
Assert
.assertTrue;
ConvertPackageTest.java
19
import static org.junit.
Assert
.assertEquals;
/external/webkit/Tools/Scripts/webkitpy/common/system/
logtesting.py
70
"""
Assert
that the given messages match the logged messages.
164
"""
Assert
there are no remaining log messages, and reset logging.
181
# deliberately doesn't want to
assert
every message.
194
"""
Assert
the current array of log messages, and clear its contents.
246
# deliberately doesn't want to
assert
every message.
252
"""
Assert
the current array of log messages, and clear its contents.
/frameworks/base/tests/CoreTests/android/core/
SocketTest.java
19
import junit.framework.
Assert
;
275
Assert
.assertNull("Connect must not fail immediately. Maybe try different address.", error);
276
Assert
.assertFalse("Connect must not succeed. Maybe try different address.", connected);
/packages/apps/Contacts/src/com/android/contacts/interactions/
TestLoaderManager.java
34
import junit.framework.
Assert
;
140
Assert
.fail("Loader does not exist: " + loaderId);
166
Assert
.fail("Exception while waiting for loader: " + loader.getId());
/frameworks/base/core/java/android/net/http/
RequestHandle.java
21
import junit.framework.
Assert
;
276
Assert
.assertNotNull(username);
277
Assert
.assertNotNull(password);
304
Assert
.assertNotNull(username);
305
Assert
.assertNotNull(password);
306
Assert
.assertNotNull(realm);
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/
MockContentProvider.java
34
import junit.framework.
Assert
;
264
Assert
.fail("Unexpected query: "
272
Assert
.fail("Incorrect query.\n Expected: " + sb + "\n Actual: " +
286
Assert
.fail("Unexpected getType query: " + uri);
294
Assert
.fail("Unknown mime type for: " + uri);
338
Assert
.assertTrue("Not all expected queries have been called: " +
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
UnitTestSuiteBuilderTest.java
21
import junit.framework.
Assert
;
45
Assert
.assertEquals(0, ListTestCaseNames.getTestCaseNames(testSuite).size());
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
ImapTestUtils.java
30
import junit.framework.
Assert
;
62
Assert
.fail(String.format("%s expected=%s\nactual=%s", message, expected, actual));
/dalvik/dx/src/junit/framework/
TestCase.java
70
public abstract class TestCase extends
Assert
implements Test {
134
* Override to run the test and
assert
its state.
/external/llvm/include/llvm/Support/
ValueHandle.h
47
Assert
,
170
/// one. Using an AssertingVH ensures that an
assert
is triggered as soon as
175
/// AssertingVH's as it moves. This is required because in non-
assert
mode this
204
AssertingVH() : ValueHandleBase(
Assert
) {}
205
AssertingVH(ValueTy *P) : ValueHandleBase(
Assert
, GetAsValue(P)) {}
206
AssertingVH(const AssertingVH &RHS) : ValueHandleBase(
Assert
, RHS) {}
292
assert
(ValueHandleBase::isValid(VP) && "Tracked Value was deleted!");
298
assert
(isa<ValueTy>(VP) &&
/frameworks/base/core/tests/coretests/src/android/util/
LogTest.java
19
import junit.framework.
Assert
;
46
Assert
.assertTrue(value == null || value.length() == 0);
48
// Check to make sure that all levels expect for INFO, WARN, ERROR, and
ASSERT
are loggable.
49
Assert
.assertFalse(Log.isLoggable(LOG_TAG, Log.VERBOSE));
50
Assert
.assertFalse(Log.isLoggable(LOG_TAG, Log.DEBUG));
51
Assert
.assertTrue(Log.isLoggable(LOG_TAG, Log.INFO));
52
Assert
.assertTrue(Log.isLoggable(LOG_TAG, Log.WARN));
53
Assert
.assertTrue(Log.isLoggable(LOG_TAG, Log.ERROR));
54
Assert
.assertTrue(Log.isLoggable(LOG_TAG, Log.
ASSERT
));
[
all
...]
Completed in 1345 milliseconds
1
2
3
4
5
6
7
8
9
10