Home
last modified time | relevance | path

Searched refs:Assert (Results 1 – 25 of 2478) sorted by relevance

12345678910>>...100

/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DANTLRxxxxStreamFixture.cs79 Assert.AreEqual(0, inputStream.Count); in TestSizeOnEmptyANTLRInputStream()
90 Assert.AreEqual(grammarStr.Length, inputStream.Count); in TestSizeOnANTLRInputStream()
101 Assert.AreEqual(0, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
104 Assert.AreEqual(1, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
107 Assert.AreEqual(2, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
113 Assert.AreEqual(inputStream.Index, inputStream.Count); in TestConsumeAndIndexOnANTLRInputStream()
129 Assert.AreEqual(inputStream.Index, inputStream.Count); in TestConsumeAllCharactersInAnANTLRInputStream()
140 Assert.AreEqual(0, inputStream.Index); in TestConsumeOnANTLRInputStream()
141 Assert.AreEqual(0, inputStream.CharPositionInLine); in TestConsumeOnANTLRInputStream()
142 Assert.AreEqual(1, inputStream.Line); in TestConsumeOnANTLRInputStream()
[all …]
DRewriteRuleXxxxStreamFixture.cs100 Assert.IsFalse(tokenTest.HasNext, "tokenTest has to give back false here."); in CheckRRTokenStreamBehaviourWhileEmpty1()
101 Assert.AreEqual(description.ToString(), tokenTest.Description, in CheckRRTokenStreamBehaviourWhileEmpty1()
103 Assert.AreEqual(0, tokenTest.Count, "The number of elements should be zero."); in CheckRRTokenStreamBehaviourWhileEmpty1()
105 Assert.IsTrue(true, "Reset() shouldn't make any problems here."); in CheckRRTokenStreamBehaviourWhileEmpty1()
106 Assert.AreEqual(0, tokenTest.Count, in CheckRRTokenStreamBehaviourWhileEmpty1()
119 Assert.IsFalse(subtreeTest.HasNext, "HasNext has to give back false here."); in CheckRRSubtreeStreamBehaviourWhileEmpty1()
120 Assert.AreEqual(description.ToString(), subtreeTest.Description, in CheckRRSubtreeStreamBehaviourWhileEmpty1()
122 Assert.AreEqual(0, subtreeTest.Count, "The number of elements should be zero."); in CheckRRSubtreeStreamBehaviourWhileEmpty1()
124 Assert.IsTrue(true, "Reset() shouldn't make any problems here."); in CheckRRSubtreeStreamBehaviourWhileEmpty1()
125 Assert.AreEqual(0, subtreeTest.Count, in CheckRRSubtreeStreamBehaviourWhileEmpty1()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtil.java236 import junit.framework.Assert;
503 Assert.assertTrue(message.hasOptionalInt32 ()); in assertAllFieldsSet()
504 Assert.assertTrue(message.hasOptionalInt64 ()); in assertAllFieldsSet()
505 Assert.assertTrue(message.hasOptionalUint32 ()); in assertAllFieldsSet()
506 Assert.assertTrue(message.hasOptionalUint64 ()); in assertAllFieldsSet()
507 Assert.assertTrue(message.hasOptionalSint32 ()); in assertAllFieldsSet()
508 Assert.assertTrue(message.hasOptionalSint64 ()); in assertAllFieldsSet()
509 Assert.assertTrue(message.hasOptionalFixed32 ()); in assertAllFieldsSet()
510 Assert.assertTrue(message.hasOptionalFixed64 ()); in assertAllFieldsSet()
511 Assert.assertTrue(message.hasOptionalSfixed32()); in assertAllFieldsSet()
[all …]
/external/testng/src/test/java/test/mannotation/
DMAnnotationSampleTest.java3 import org.testng.Assert;
35 Assert.assertTrue(test1.getEnabled()); in verifyTestClassLevel()
36 Assert.assertEquals(test1.getGroups(), new String[] { "group1", "group2" }); in verifyTestClassLevel()
37 Assert.assertTrue(test1.getAlwaysRun()); in verifyTestClassLevel()
38 Assert.assertEquals(test1.getParameters(), new String[] { "param1", "param2" }); in verifyTestClassLevel()
39Assert.assertEqualsNoOrder(test1.getDependsOnGroups(), new String[] { "dg1", "dg2" }, "depends on… in verifyTestClassLevel()
40 Assert.assertEqualsNoOrder( test1.getDependsOnMethods(), new String[] { "dm1", "dm2" }); in verifyTestClassLevel()
41 Assert.assertEquals(test1.getTimeOut(), 42); in verifyTestClassLevel()
42 Assert.assertEquals(test1.getInvocationCount(), 43); in verifyTestClassLevel()
43 Assert.assertEquals(test1.getSuccessPercentage(), 44); in verifyTestClassLevel()
[all …]
/external/smali/util/src/test/java/org/jf/util/
DNumberUtilsTest.java34 import junit.framework.Assert;
40 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.23f))); in isLikelyFloatTest()
41 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.0f))); in isLikelyFloatTest()
42 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NaN))); in isLikelyFloatTest()
43Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NEGATIVE_INFINITY))); in isLikelyFloatTest()
44Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.POSITIVE_INFINITY))); in isLikelyFloatTest()
45 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1e-30f))); in isLikelyFloatTest()
46 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1000f))); in isLikelyFloatTest()
47 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1f))); in isLikelyFloatTest()
48 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(-1f))); in isLikelyFloatTest()
[all …]
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliFieldTest.java43 import org.junit.Assert;
52 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testBasicField()
55 Assert.assertEquals(1, fields.length); in testBasicField()
56 Assert.assertEquals("myField", fields[0].getName()); in testBasicField()
57 Assert.assertTrue(fields[0].getType() instanceof PsiPrimitiveType); in testBasicField()
58 Assert.assertEquals("int", fields[0].getType().getCanonicalText()); in testBasicField()
60 Assert.assertNotNull("I", typeElement); in testBasicField()
61 Assert.assertEquals("I", typeElement.getText()); in testBasicField()
64 Assert.assertNotNull(modifierList); in testBasicField()
65 Assert.assertEquals(AccessFlags.PUBLIC.getValue(), modifierList.getAccessFlags()); in testBasicField()
[all …]
DSmaliAnnotationTest.java40 import org.junit.Assert;
81 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testClassAnnotation()
123 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testFieldAnnotation()
166 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testMethodAnnotation()
173 Assert.assertEquals(2, annotationOwner.getAnnotations().length); in doTest()
175Assert.assertEquals("my.TestAnnotation", annotationOwner.getAnnotations()[0].getQualifiedName()); in doTest()
177 Assert.assertNotNull(annotationNameRef); in doTest()
179 Assert.assertNotNull(smaliAnnotationClass); in doTest()
180 Assert.assertEquals("my.TestAnnotation", smaliAnnotationClass.getQualifiedName()); in doTest()
182Assert.assertEquals("my.TestAnnotation2", annotationOwner.getAnnotations()[1].getQualifiedName()); in doTest()
[all …]
DSmaliImplementsExtendsTest.java40 import org.junit.Assert;
57 Assert.assertEquals(1, extendsList.getReferencedTypes().length); in testNormalClass()
58 Assert.assertEquals("my.pkg.base", extendsList.getReferencedTypes()[0].getCanonicalText()); in testNormalClass()
59 Assert.assertEquals(1, extendsList.getReferenceNames().length); in testNormalClass()
60 Assert.assertEquals("my.pkg.base", extendsList.getReferenceNames()[0]); in testNormalClass()
61 Assert.assertEquals(1, smaliClass.getExtendsListTypes().length); in testNormalClass()
62 Assert.assertEquals("my.pkg.base", smaliClass.getExtendsListTypes()[0].getCanonicalText()); in testNormalClass()
65 Assert.assertNotNull(resolvedSuper); in testNormalClass()
66 Assert.assertEquals("my.pkg.base", resolvedSuper.getQualifiedName()); in testNormalClass()
69 Assert.assertEquals(2, implementsList.getReferencedTypes().length); in testNormalClass()
[all …]
DSmaliMethodTest.java40 import org.junit.Assert;
57 Assert.assertNotNull(leafElement); in testMethodRegisters()
59 Assert.assertNotNull(methodElement); in testMethodRegisters()
61 Assert.assertEquals(123, methodElement.getRegisterCount()); in testMethodRegisters()
62 Assert.assertEquals(1, methodElement.getParameterRegisterCount()); in testMethodRegisters()
77 Assert.assertNotNull(leafElement); in testMethodRegisters2()
79 Assert.assertNotNull(methodElement); in testMethodRegisters2()
81 Assert.assertEquals(128, methodElement.getRegisterCount()); in testMethodRegisters2()
82 Assert.assertEquals(5, methodElement.getParameterRegisterCount()); in testMethodRegisters2()
97 Assert.assertEquals(127, smaliMethod.getRegisterCount()); in testStaticRegisterCount()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
57Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint()
65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint()
82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
[all …]
DGeneratedMessageTest.cs63 Assert.AreEqual(false, message.SingleBool); in DefaultValues()
64 Assert.AreEqual(ByteString.Empty, message.SingleBytes); in DefaultValues()
65 Assert.AreEqual(0.0, message.SingleDouble); in DefaultValues()
66 Assert.AreEqual(0, message.SingleFixed32); in DefaultValues()
67 Assert.AreEqual(0L, message.SingleFixed64); in DefaultValues()
68 Assert.AreEqual(0.0f, message.SingleFloat); in DefaultValues()
69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues()
70 Assert.IsNull(message.SingleForeignMessage); in DefaultValues()
71 Assert.AreEqual(ImportEnum.Unspecified, message.SingleImportEnum); in DefaultValues()
72 Assert.IsNull(message.SingleImportMessage); in DefaultValues()
[all …]
DCodedInputStreamTest.cs63 Assert.AreEqual((uint) value, input.ReadRawVarint32()); in AssertReadVarint()
66 Assert.AreEqual(value, input.ReadRawVarint64()); in AssertReadVarint()
67 Assert.IsTrue(input.IsAtEnd); in AssertReadVarint()
73 Assert.AreEqual((uint) value, input.ReadRawVarint32()); in AssertReadVarint()
76 Assert.AreEqual(value, input.ReadRawVarint64()); in AssertReadVarint()
77 Assert.IsTrue(input.IsAtEnd); in AssertReadVarint()
87 Assert.AreEqual((uint) value, CodedInputStream.ReadRawVarint32(memoryStream)); in AssertReadVarint()
88 Assert.AreEqual(data.Length, memoryStream.Position); in AssertReadVarint()
99 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure()
100 Assert.AreEqual(expected.Message, exception.Message); in AssertReadVarintFailure()
[all …]
DByteStringTest.cs54 Assert.IsTrue(b1 == b1); in Equality()
55 Assert.IsTrue(b1 == b2); in Equality()
56 Assert.IsFalse(b1 == b3); in Equality()
57 Assert.IsFalse(b1 == b4); in Equality()
58 Assert.IsFalse(b1 == null); in Equality()
59 Assert.IsTrue((ByteString) null == null); in Equality()
60 Assert.IsFalse(b1 != b1); in Equality()
61 Assert.IsFalse(b1 != b2); in Equality()
63 Assert.IsTrue(b1 != b3); in Equality()
64 Assert.IsTrue(b1 != b4); in Equality()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs51 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Name); in FileDescriptor()
52 Assert.AreEqual("protobuf_unittest", file.Package); in FileDescriptor()
54 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in FileDescriptor()
55 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Proto.Name); in FileDescriptor()
58 Assert.AreEqual(0, file.PublicDependencies.Count); in FileDescriptor()
59 Assert.AreEqual(1, UnittestImportProto3Reflection.Descriptor.PublicDependencies.Count); in FileDescriptor()
60Assert.AreEqual(UnittestImportPublicProto3Reflection.Descriptor, UnittestImportProto3Reflection.De… in FileDescriptor()
62 Assert.AreEqual(1, file.Dependencies.Count); in FileDescriptor()
63 Assert.AreEqual(UnittestImportProto3Reflection.Descriptor, file.Dependencies[0]); in FileDescriptor()
66 Assert.AreSame(typeof(TestAllTypes), messageType.ClrType); in FileDescriptor()
[all …]
/external/smali/smalidea/src/test/java/org/jf/smalidea/dexlib/
DSmalideaMethodTest.java51 import org.junit.Assert;
95 Assert.assertEquals("Lmy/pkg/blah;", method.getDefiningClass()); in testSmalideaMethod()
96 Assert.assertEquals("someMethodName", method.getName()); in testSmalideaMethod()
97 Assert.assertEquals("I", method.getReturnType()); in testSmalideaMethod()
100 Assert.assertEquals(1, parameterTypes.size()); in testSmalideaMethod()
101 Assert.assertEquals("I", parameterTypes.get(0)); in testSmalideaMethod()
104 Assert.assertEquals(1, parameters.size()); in testSmalideaMethod()
105 Assert.assertEquals("I", parameters.get(0).getType()); in testSmalideaMethod()
106 Assert.assertEquals("edge", parameters.get(0).getName()); in testSmalideaMethod()
108 Assert.assertEquals(AccessFlags.PUBLIC.getValue(), method.getAccessFlags()); in testSmalideaMethod()
[all …]
/external/libmojo/base/android/javatests/src/org/chromium/base/metrics/
DRecordHistogramTest.java9 import org.junit.Assert;
41 Assert.assertEquals(0, trueCount.getDelta()); in testRecordBooleanHistogram()
42 Assert.assertEquals(0, falseCount.getDelta()); in testRecordBooleanHistogram()
45 Assert.assertEquals(1, trueCount.getDelta()); in testRecordBooleanHistogram()
46 Assert.assertEquals(0, falseCount.getDelta()); in testRecordBooleanHistogram()
49 Assert.assertEquals(2, trueCount.getDelta()); in testRecordBooleanHistogram()
50 Assert.assertEquals(0, falseCount.getDelta()); in testRecordBooleanHistogram()
53 Assert.assertEquals(2, trueCount.getDelta()); in testRecordBooleanHistogram()
54 Assert.assertEquals(1, falseCount.getDelta()); in testRecordBooleanHistogram()
69 Assert.assertEquals(0, zeroCount.getDelta()); in testRecordEnumeratedHistogram()
[all …]
/external/libmojo/base/android/javatests/src/org/chromium/base/
DObserverListTest.java9 import org.junit.Assert;
114 Assert.assertEquals(20, a.mTotal); in testRemoveWhileIteration()
116 Assert.assertEquals(-20, b.mTotal); in testRemoveWhileIteration()
118 Assert.assertEquals(0, c.mTotal); in testRemoveWhileIteration()
120 Assert.assertEquals(-10, d.mTotal); in testRemoveWhileIteration()
122 Assert.assertEquals(0, e.mTotal); in testRemoveWhileIteration()
141 Assert.assertTrue(observerList.hasObserver(c)); in testAddWhileIteration()
142 Assert.assertEquals(10, a.mTotal); in testAddWhileIteration()
143 Assert.assertEquals(-10, b.mTotal); in testAddWhileIteration()
144 Assert.assertEquals(0, c.mTotal); in testAddWhileIteration()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs55 Assert.AreEqual(20, clone["x"].C); in Clone_ClonesMessages()
70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
137 Assert.IsFalse(map.Equals(new object())); in Equality_Simple()
177 Assert.AreEqual(expected, map2); in Add_Dictionary()
187 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
196 Assert.AreEqual("y", map["x"]); in Add_Pair()
197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
[all …]
DRepeatedFieldTest.cs51 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected()
52 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
54 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected()
55 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected()
63 Assert.AreEqual(1, list.Count); in Add_SingleItem()
64 Assert.AreEqual("foo", list[0]); in Add_SingleItem()
72 Assert.AreEqual(2, list.Count); in Add_Sequence()
73 Assert.AreEqual("foo", list[0]); in Add_Sequence()
74 Assert.AreEqual("bar", list[1]); in Add_Sequence()
[all …]
/external/smali/smali/src/test/java/org/jf/smali/
DImplicitReferenceTest.java34 import junit.framework.Assert;
80 Assert.assertNotNull(mainMethod); in testImplicitMethodReference()
83 Assert.assertNotNull(methodImpl); in testImplicitMethodReference()
88 Assert.assertNotNull(instruction); in testImplicitMethodReference()
89 Assert.assertEquals(Opcode.INVOKE_STATIC, instruction.getOpcode()); in testImplicitMethodReference()
91 Assert.assertEquals(classDef.getType(), method.getDefiningClass()); in testImplicitMethodReference()
92 Assert.assertEquals("toString", method.getName()); in testImplicitMethodReference()
95 Assert.assertNotNull(instruction); in testImplicitMethodReference()
96 Assert.assertEquals(Opcode.INVOKE_STATIC, instruction.getOpcode()); in testImplicitMethodReference()
98 Assert.assertEquals(classDef.getType(), method.getDefiningClass()); in testImplicitMethodReference()
[all …]
DShortLiteralTest.java33 import org.junit.Assert;
42 Assert.assertTrue(LiteralTools.parseShort("0x0") == 0x0); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseShort("0x00") == 0x0); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseShort("0x1") == 0x1); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseShort("0x1234") == 0x1234); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseShort("0x7fff") == 0x7fff); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseShort("0xFFFF") == -1); in SuccessHexTests()
50 Assert.assertTrue(LiteralTools.parseShort("-0x00") == 0); in SuccessHexTests()
51 Assert.assertTrue(LiteralTools.parseShort("-0x01") == -1); in SuccessHexTests()
[all …]
DLongLiteralTest.java33 import org.junit.Assert;
40 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0); in SuccessHexTests()
41 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0); in SuccessHexTests()
49 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1); in SuccessHexTests()
[all …]
DByteLiteralTest.java33 import org.junit.Assert;
42 Assert.assertTrue(LiteralTools.parseByte("0x0T") == 0x0); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseByte("0x00") == 0x0); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseByte("0x1T") == 0x1); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseByte("0x12") == 0x12); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseByte("0x7fT") == 0x7f); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseByte("0xFFt") == -1); in SuccessHexTests()
50 Assert.assertTrue(LiteralTools.parseByte("-0x00") == 0); in SuccessHexTests()
51 Assert.assertTrue(LiteralTools.parseByte("-0x01") == -1); in SuccessHexTests()
[all …]
DIntLiteralTest.java33 import org.junit.Assert;
41 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1); in SuccessHexTests()
49 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0); in SuccessHexTests()
50 Assert.assertTrue(LiteralTools.parseInt("-0x01") == -1); in SuccessHexTests()
[all …]
/external/testng/src/test/java/test/invokedmethodlistener/
DInvokedMethodListenerTest.java3 import org.testng.Assert;
26 Assert.assertEquals(l.getBeforeCount(), 9); in assertMethodCount()
27 Assert.assertEquals(l.getAfterCount(), 9); in assertMethodCount()
42 Assert.assertEquals(l.getSuiteStatus(), ITestResult.FAILURE); in withFailure()
43 Assert.assertTrue(null != l.getSuiteThrowable()); in withFailure()
44 Assert.assertTrue(l.getSuiteThrowable().getClass() == RuntimeException.class); in withFailure()
46 Assert.assertEquals(l.getMethodStatus(), ITestResult.FAILURE); in withFailure()
47 Assert.assertTrue(null != l.getMethodThrowable()); in withFailure()
48 Assert.assertTrue(l.getMethodThrowable().getClass() == IllegalArgumentException.class); in withFailure()
65 Assert.assertFalse(beforeSuite.getTestMethod().isAfterMethodConfiguration()); in sameMethodInvokedMultipleTimesShouldHaveDifferentTimeStamps()
[all …]

12345678910>>...100