Home
last modified time | relevance | path

Searched refs:thrown (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/external/opencensus-java/api/src/test/java/io/opencensus/metrics/
DMetricRegistryTest.java32 @Rule public ExpectedException thrown = ExpectedException.none(); field in MetricRegistryTest
49 thrown.expect(NullPointerException.class); in noopAddLongGauge_NullName()
50 thrown.expectMessage("name"); in noopAddLongGauge_NullName()
56 thrown.expect(NullPointerException.class); in noopAddLongGauge_NullDescription()
57 thrown.expectMessage("description"); in noopAddLongGauge_NullDescription()
63 thrown.expect(NullPointerException.class); in noopAddLongGauge_NullUnit()
64 thrown.expectMessage("unit"); in noopAddLongGauge_NullUnit()
70 thrown.expect(NullPointerException.class); in noopAddLongGauge_NullLabels()
71 thrown.expectMessage("labelKeys"); in noopAddLongGauge_NullLabels()
78 thrown.expect(NullPointerException.class); in noopAddLongGauge_WithNullElement()
[all …]
DDerivedDoubleGaugeTest.java33 @Rule public ExpectedException thrown = ExpectedException.none(); field in DerivedDoubleGaugeTest
56 thrown.expect(NullPointerException.class); in noopCreateTimeSeries_WithNullLabelValues()
57 thrown.expectMessage("labelValues"); in noopCreateTimeSeries_WithNullLabelValues()
64 thrown.expect(NullPointerException.class); in noopCreateTimeSeries_WithNullElement()
65 thrown.expectMessage("labelValue element should not be null."); in noopCreateTimeSeries_WithNullElement()
71 thrown.expect(IllegalArgumentException.class); in noopCreateTimeSeries_WithInvalidLabelSize()
72 thrown.expectMessage("Incorrect number of labels."); in noopCreateTimeSeries_WithInvalidLabelSize()
78 thrown.expect(NullPointerException.class); in createTimeSeries_WithNullFunction()
79 thrown.expectMessage("function"); in createTimeSeries_WithNullFunction()
85 thrown.expect(NullPointerException.class); in noopRemoveTimeSeries_WithNullLabelValues()
[all …]
DDerivedLongGaugeTest.java33 @Rule public ExpectedException thrown = ExpectedException.none(); field in DerivedLongGaugeTest
56 thrown.expect(NullPointerException.class); in noopCreateTimeSeries_WithNullLabelValues()
57 thrown.expectMessage("labelValues"); in noopCreateTimeSeries_WithNullLabelValues()
64 thrown.expect(NullPointerException.class); in noopCreateTimeSeries_WithNullElement()
65 thrown.expectMessage("labelValue element should not be null."); in noopCreateTimeSeries_WithNullElement()
71 thrown.expect(IllegalArgumentException.class); in noopCreateTimeSeries_WithInvalidLabelSize()
72 thrown.expectMessage("Incorrect number of labels."); in noopCreateTimeSeries_WithInvalidLabelSize()
78 thrown.expect(NullPointerException.class); in createTimeSeries_WithNullFunction()
79 thrown.expectMessage("function"); in createTimeSeries_WithNullFunction()
85 thrown.expect(NullPointerException.class); in noopRemoveTimeSeries_WithNullLabelValues()
[all …]
DDoubleGaugeTest.java33 @Rule public ExpectedException thrown = ExpectedException.none(); field in DoubleGaugeTest
51 thrown.expect(NullPointerException.class); in noopGetOrCreateTimeSeries_WithNullLabelValues()
52 thrown.expectMessage("labelValues"); in noopGetOrCreateTimeSeries_WithNullLabelValues()
60 thrown.expect(NullPointerException.class); in noopGetOrCreateTimeSeries_WithNullElement()
61 thrown.expectMessage("labelValue element should not be null."); in noopGetOrCreateTimeSeries_WithNullElement()
68 thrown.expect(IllegalArgumentException.class); in noopGetOrCreateTimeSeries_WithInvalidLabelSize()
69 thrown.expectMessage("Incorrect number of labels."); in noopGetOrCreateTimeSeries_WithInvalidLabelSize()
76 thrown.expect(NullPointerException.class); in noopRemoveTimeSeries_WithNullLabelValues()
77 thrown.expectMessage("labelValues"); in noopRemoveTimeSeries_WithNullLabelValues()
DLongGaugeTest.java33 @Rule public ExpectedException thrown = ExpectedException.none(); field in LongGaugeTest
50 thrown.expect(NullPointerException.class); in noopGetOrCreateTimeSeries_WithNullLabelValues()
51 thrown.expectMessage("labelValues"); in noopGetOrCreateTimeSeries_WithNullLabelValues()
59 thrown.expect(NullPointerException.class); in noopGetOrCreateTimeSeries_WithNullElement()
60 thrown.expectMessage("labelValue element should not be null."); in noopGetOrCreateTimeSeries_WithNullElement()
67 thrown.expect(IllegalArgumentException.class); in noopGetOrCreateTimeSeries_WithInvalidLabelSize()
68 thrown.expectMessage("Incorrect number of labels."); in noopGetOrCreateTimeSeries_WithInvalidLabelSize()
75 thrown.expect(NullPointerException.class); in noopRemoveTimeSeries_WithNullLabelValues()
76 thrown.expectMessage("labelValues"); in noopRemoveTimeSeries_WithNullLabelValues()
/external/opencensus-java/api/src/test/java/io/opencensus/internal/
DUtilsTest.java38 @Rule public ExpectedException thrown = ExpectedException.none(); field in UtilsTest
43 thrown.expect(IllegalArgumentException.class); in checkArgument()
44 thrown.expectMessage(TEST_MESSAGE); in checkArgument()
50 thrown.expect(IllegalArgumentException.class); in checkArgument_NullErrorMessage()
51 thrown.expectMessage("null"); in checkArgument_NullErrorMessage()
57 thrown.expect(IllegalArgumentException.class); in checkArgument_WithSimpleFormat()
58 thrown.expectMessage(FORMATED_SIMPLE_TEST_MESSAGE); in checkArgument_WithSimpleFormat()
64 thrown.expect(IllegalArgumentException.class); in checkArgument_WithComplexFormat()
65 thrown.expectMessage(FORMATED_COMPLEX_TEST_MESSAGE); in checkArgument_WithComplexFormat()
72 thrown.expect(IllegalStateException.class); in checkState()
[all …]
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyServerBuilderTest.java37 @Rule public final ExpectedException thrown = ExpectedException.none(); field in NettyServerBuilderTest
51 thrown.expect(IllegalArgumentException.class); in failIfSslContextIsNotServer()
52 thrown.expectMessage("Client SSL context can not be used for server"); in failIfSslContextIsNotServer()
58 thrown.expect(IllegalArgumentException.class); in failIfKeepAliveTimeNegative()
59 thrown.expectMessage("keepalive time must be positive"); in failIfKeepAliveTimeNegative()
66 thrown.expect(IllegalArgumentException.class); in failIfKeepAliveTimeoutNegative()
67 thrown.expectMessage("keepalive timeout must be positive"); in failIfKeepAliveTimeoutNegative()
74 thrown.expect(IllegalArgumentException.class); in failIfMaxConcurrentCallsPerConnectionNegative()
75 thrown.expectMessage("max must be positive"); in failIfMaxConcurrentCallsPerConnectionNegative()
82 thrown.expect(IllegalArgumentException.class); in failIfMaxHeaderListSizeNegative()
[all …]
DNettyChannelBuilderTest.java41 @Rule public final ExpectedException thrown = ExpectedException.none(); field in NettyChannelBuilderTest
109 thrown.expect(IllegalArgumentException.class); in failOverrideInvalidAuthority()
110 thrown.expectMessage("Invalid authority:"); in failOverrideInvalidAuthority()
117 thrown.expect(IllegalArgumentException.class); in failInvalidAuthority()
118 thrown.expectMessage("Invalid host or port"); in failInvalidAuthority()
135 thrown.expect(IllegalArgumentException.class); in failIfSslContextIsNotClient()
136 thrown.expectMessage("Server SSL context can not be used for client channel"); in failIfSslContextIsNotClient()
161 thrown.expect(NullPointerException.class); in createProtocolNegotiatorByType_tlsWithNoContext()
199 thrown.expect(IllegalArgumentException.class); in negativeKeepAliveTime()
200 thrown.expectMessage("keepalive time must be positive"); in negativeKeepAliveTime()
[all …]
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/metrics/
DMetricRegistryImplTest.java51 @Rule public ExpectedException thrown = ExpectedException.none(); field in MetricRegistryImplTest
94 thrown.expect(NullPointerException.class); in addLongGauge_NullName()
95 thrown.expectMessage("name"); in addLongGauge_NullName()
101 thrown.expect(NullPointerException.class); in addLongGauge_NullDescription()
102 thrown.expectMessage("description"); in addLongGauge_NullDescription()
108 thrown.expect(NullPointerException.class); in addLongGauge_NullUnit()
109 thrown.expectMessage("unit"); in addLongGauge_NullUnit()
115 thrown.expect(NullPointerException.class); in addLongGauge_NullLabels()
116 thrown.expectMessage("labelKeys"); in addLongGauge_NullLabels()
123 thrown.expect(NullPointerException.class); in addLongGauge_WithNullElement()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
DSummaryTest.java35 @Rule public final ExpectedException thrown = ExpectedException.none(); field in SummaryTest
47 thrown.expect(IllegalArgumentException.class); in createValueAtPercentile_InvalidValueAtPercentileInterval()
48 thrown.expectMessage("percentile must be in the interval (0.0, 100.0]"); in createValueAtPercentile_InvalidValueAtPercentileInterval()
54 thrown.expect(IllegalArgumentException.class); in createValueAtPercentile_NegativeValue()
55 thrown.expectMessage("value must be non-negative"); in createValueAtPercentile_NegativeValue()
83 thrown.expect(IllegalArgumentException.class); in createSnapshot_NegativeCount()
84 thrown.expectMessage("count must be non-negative"); in createSnapshot_NegativeCount()
90 thrown.expect(IllegalArgumentException.class); in createSnapshot_NegativeSum()
91 thrown.expectMessage("sum must be non-negative"); in createSnapshot_NegativeSum()
97 thrown.expect(IllegalArgumentException.class); in createSnapshot_ZeroCountAndNonZeroSum()
[all …]
DDistributionTest.java44 @Rule public final ExpectedException thrown = ExpectedException.none(); field in DistributionTest
67 thrown.expect(NullPointerException.class); in createBucket_preventNullExemplar()
68 thrown.expectMessage("exemplar"); in createBucket_preventNullExemplar()
102 thrown.expect(IllegalArgumentException.class); in createAndGet_ExplicitBucketsNegativeBounds()
103 thrown.expectMessage("bucket boundary should be > 0"); in createAndGet_ExplicitBucketsNegativeBounds()
109 thrown.expect(NullPointerException.class); in createAndGet_PreventNullExplicitBuckets()
135 thrown.expect(IllegalArgumentException.class); in createBucketOptions_UnorderedBucketBounds()
136 thrown.expectMessage("bucket boundaries not sorted."); in createBucketOptions_UnorderedBucketBounds()
142 thrown.expect(NullPointerException.class); in createAndGet_PreventNullBucketOptions()
179 thrown.expect(IllegalArgumentException.class); in createBucket_NegativeCount()
[all …]
DTimeSeriesTest.java38 @Rule public ExpectedException thrown = ExpectedException.none(); field in TimeSeriesTest
64 thrown.expect(NullPointerException.class); in create_WithNullLabelValueList()
65 thrown.expectMessage(CoreMatchers.equalTo("labelValues")); in create_WithNullLabelValueList()
72 thrown.expect(NullPointerException.class); in create_WithNullLabelValue()
73 thrown.expectMessage(CoreMatchers.equalTo("labelValue")); in create_WithNullLabelValue()
79 thrown.expect(NullPointerException.class); in create_WithNullPointList()
80 thrown.expectMessage(CoreMatchers.equalTo("points")); in create_WithNullPointList()
87 thrown.expect(NullPointerException.class); in create_WithNullPoint()
88 thrown.expectMessage(CoreMatchers.equalTo("point")); in create_WithNullPoint()
106 thrown.expect(NullPointerException.class); in createWithOnePoint_WithNullLabelValueList()
[all …]
DMetricTest.java40 @Rule public final ExpectedException thrown = ExpectedException.none(); field in MetricTest
110 thrown.expect(IllegalArgumentException.class); in typeMismatch()
111 thrown.expectMessage(errorMessage); in typeMismatch()
117 thrown.expect(NullPointerException.class); in create_WithNullMetricDescriptor()
118 thrown.expectMessage("metricDescriptor"); in create_WithNullMetricDescriptor()
124 thrown.expect(NullPointerException.class); in create_WithNullTimeSeriesList()
125 thrown.expectMessage("timeSeriesList"); in create_WithNullTimeSeriesList()
131 thrown.expect(NullPointerException.class); in create_WithNullTimeSeries()
132 thrown.expectMessage("timeSeries"); in create_WithNullTimeSeries()
147 thrown.expect(NullPointerException.class); in createWithOneTimeSeries_WithNullTimeSeries()
[all …]
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverStatsExporterTest.java48 @Rule public final ExpectedException thrown = ExpectedException.none(); field in StackdriverStatsExporterTest
57 thrown.expect(NullPointerException.class); in createWithNullStackdriverStatsConfiguration()
58 thrown.expectMessage("configuration"); in createWithNullStackdriverStatsConfiguration()
69 thrown.expect(IllegalArgumentException.class); in createWithNegativeDuration_WithConfiguration()
70 thrown.expectMessage("Duration must be positive"); in createWithNegativeDuration_WithConfiguration()
77 thrown.expect(NullPointerException.class); in createWithNullCredentials()
78 thrown.expectMessage("credentials"); in createWithNullCredentials()
86 thrown.expect(NullPointerException.class); in createWithNullProjectId()
87 thrown.expectMessage("projectId"); in createWithNullProjectId()
95 thrown.expect(NullPointerException.class); in createWithNullDuration()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/common/
DDurationTest.java30 @Rule public ExpectedException thrown = ExpectedException.none(); field in DurationTest
46 thrown.expect(IllegalArgumentException.class); in create_SecondsTooLow()
47 thrown.expectMessage("'seconds' is less than minimum (-315576000000): -315576000001"); in create_SecondsTooLow()
53 thrown.expect(IllegalArgumentException.class); in create_SecondsTooHigh()
54 thrown.expectMessage("'seconds' is greater than maximum (315576000000): 315576000001"); in create_SecondsTooHigh()
60 thrown.expect(IllegalArgumentException.class); in create_NanosTooLow()
61 thrown.expectMessage("'nanos' is less than minimum (-999999999): -1000000000"); in create_NanosTooLow()
67 thrown.expect(IllegalArgumentException.class); in create_NanosTooHigh()
68 thrown.expectMessage("'nanos' is greater than maximum (999999999): 1000000000"); in create_NanosTooHigh()
74 thrown.expect(IllegalArgumentException.class); in create_NegativeSecondsPositiveNanos()
[all …]
DTimestampTest.java30 @Rule public ExpectedException thrown = ExpectedException.none(); field in TimestampTest
46 thrown.expect(IllegalArgumentException.class); in create_SecondsTooLow()
47 thrown.expectMessage("'seconds' is less than minimum (-315576000000): -315576000001"); in create_SecondsTooLow()
53 thrown.expect(IllegalArgumentException.class); in create_SecondsTooHigh()
54 thrown.expectMessage("'seconds' is greater than maximum (315576000000): 315576000001"); in create_SecondsTooHigh()
60 thrown.expect(IllegalArgumentException.class); in create_NanosTooLow_PositiveTime()
61 thrown.expectMessage("'nanos' is less than zero: -1"); in create_NanosTooLow_PositiveTime()
67 thrown.expect(IllegalArgumentException.class); in create_NanosTooHigh_PositiveTime()
68 thrown.expectMessage("'nanos' is greater than maximum (999999999): 1000000000"); in create_NanosTooHigh_PositiveTime()
74 thrown.expect(IllegalArgumentException.class); in create_NanosTooLow_NegativeTime()
[all …]
DServerStatsEncodingTest.java33 @Rule public final ExpectedException thrown = ExpectedException.none(); field in ServerStatsEncodingTest
96 thrown.expect(ServerStatsDeserializationException.class); in negativeLbLatencyValueTest()
97 thrown.expectMessage("Serialized ServiceStats contains invalid values"); in negativeLbLatencyValueTest()
117 thrown.expect(ServerStatsDeserializationException.class); in negativeServerLatencyValueTest()
118 thrown.expectMessage("Serialized ServiceStats contains invalid values"); in negativeServerLatencyValueTest()
128 thrown.expect(ServerStatsDeserializationException.class); in emptySerializedBuffer()
129 thrown.expectMessage("Serialized ServerStats buffer is empty"); in emptySerializedBuffer()
139 thrown.expect(ServerStatsDeserializationException.class); in invalidNegativeVersion()
140 thrown.expectMessage("Invalid ServerStats version: -1"); in invalidNegativeVersion()
150 thrown.expect(ServerStatsDeserializationException.class); in invalidCompatibleVersion()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DServiceDescriptorTest.java40 public final ExpectedException thrown = ExpectedException.none(); field in ServiceDescriptorTest
44 thrown.expect(NullPointerException.class); in failsOnNullName()
45 thrown.expectMessage("name"); in failsOnNullName()
52 thrown.expect(NullPointerException.class); in failsOnNullMethods()
53 thrown.expectMessage("methods"); in failsOnNullMethods()
60 thrown.expect(NullPointerException.class); in failsOnNullMethod()
61 thrown.expectMessage("method"); in failsOnNullMethod()
76 thrown.expect(IllegalArgumentException.class); in failsOnNonMatchingNames()
77 thrown.expectMessage("service names"); in failsOnNonMatchingNames()
98 thrown.expect(IllegalArgumentException.class); in failsOnNonDuplicateNames()
[all …]
/external/guava/guava/src/com/google/common/io/
DCloser.java111 private Throwable thrown; field in Closer
147 thrown = e; in rethrow()
169 thrown = e; in rethrow()
193 thrown = e; in rethrow()
208 Throwable throwable = thrown; in close()
224 if (thrown == null && throwable != null) { in close()
239 void suppress(Closeable closeable, Throwable thrown, Throwable suppressed); in suppress() argument
250 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
280 public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { in suppress() argument
282 if (thrown == suppressed) { in suppress()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DAggregationDataTest.java53 @Rule public ExpectedException thrown = ExpectedException.none(); field in AggregationDataTest
87 thrown.expect(NullPointerException.class); in testExemplar_PreventNullAttachments()
88 thrown.expectMessage("attachments"); in testExemplar_PreventNullAttachments()
95 thrown.expect(NullPointerException.class); in testExemplar_PreventNullAttachmentKey()
96 thrown.expectMessage("key of attachment"); in testExemplar_PreventNullAttachmentKey()
103 thrown.expect(NullPointerException.class); in testExemplar_PreventNullAttachmentValue()
104 thrown.expectMessage("value of attachment"); in testExemplar_PreventNullAttachmentValue()
110 thrown.expect(NullPointerException.class); in preventNullBucketCountList()
111 thrown.expectMessage("bucketCounts"); in preventNullBucketCountList()
117 thrown.expect(NullPointerException.class); in preventNullBucket()
[all …]
DNoopStatsTest.java53 @Rule public final ExpectedException thrown = ExpectedException.none(); field in NoopStatsTest
81 thrown.expect(NullPointerException.class); in noopStatsComponent_SetState_DisallowsNull()
91 thrown.expect(IllegalStateException.class); in noopStatsComponent_DisallowsSetStateAfterGetState()
92 thrown.expectMessage("State was already read, cannot set state."); in noopStatsComponent_DisallowsSetStateAfterGetState()
99 thrown.expect(NullPointerException.class); in noopStatsRecorder_PutAttachmentNullKey()
100 thrown.expectMessage("key"); in noopStatsRecorder_PutAttachmentNullKey()
107 thrown.expect(NullPointerException.class); in noopStatsRecorder_PutAttachmentNullValue()
108 thrown.expectMessage("value"); in noopStatsRecorder_PutAttachmentNullValue()
129 thrown.expect(NullPointerException.class); in noopStatsRecorder_Record_DisallowNullTagContext()
130 thrown.expectMessage("tags"); in noopStatsRecorder_Record_DisallowNullTagContext()
/external/opencensus-java/api/src/test/java/io/opencensus/tags/
DNoopTagsTest.java49 @Rule public final ExpectedException thrown = ExpectedException.none(); field in NoopTagsTest
62 thrown.expect(NullPointerException.class); in noopTagsComponent_SetState_DisallowsNull()
72 thrown.expect(IllegalStateException.class); in preventSettingStateAfterGettingState_DifferentState()
73 thrown.expectMessage("State was already read, cannot set state."); in preventSettingStateAfterGettingState_DifferentState()
83 thrown.expect(IllegalStateException.class); in preventSettingStateAfterGettingState_SameState()
84 thrown.expectMessage("State was already read, cannot set state."); in preventSettingStateAfterGettingState_SameState()
102 thrown.expect(NullPointerException.class); in noopTagger_ToBuilder_DisallowsNull()
109 thrown.expect(NullPointerException.class); in noopTagger_WithTagContext_DisallowsNull()
126 thrown.expect(NullPointerException.class); in noopTagContextBuilder_Put_DisallowsNullKey()
133 thrown.expect(NullPointerException.class); in noopTagContextBuilder_Put_DisallowsNullValue()
[all …]
/external/libchrome/base/android/javatests/src/org/chromium/base/
DAsyncTaskTest.java53 public ExpectedException thrown = ExpectedException.none(); field in AsyncTaskTest
72 thrown.expect(RejectedExecutionException.class); in testChromeThreadPoolExecutorRunnables()
73 thrown.expectMessage( in testChromeThreadPoolExecutorRunnables()
75 thrown.expectMessage( in testChromeThreadPoolExecutorRunnables()
97 thrown.expect(RejectedExecutionException.class); in testChromeThreadPoolExecutorChromeAsyncTask()
98 thrown.expectMessage(CoreMatchers.containsString( in testChromeThreadPoolExecutorChromeAsyncTask()
100 thrown.expectMessage(CoreMatchers.not(CoreMatchers.containsString("SpecialOsAsyncTask"))); in testChromeThreadPoolExecutorChromeAsyncTask()
121 thrown.expect(RejectedExecutionException.class); in testChromeThreadPoolExecutorOsAsyncTask()
122 thrown.expectMessage( in testChromeThreadPoolExecutorOsAsyncTask()
124 thrown.expectMessage( in testChromeThreadPoolExecutorOsAsyncTask()
/external/vogar/src/vogar/target/junit/
DTimeoutAndAbortRunRule.java81 Throwable thrown;
83 thrown = getThrowable(result);
91 thrown = new VmIsUnstableException(e);
94 if (thrown != null) {
95 throw thrown;
102 Throwable thrown;
103 thrown = timeoutSeconds == 0
106 return thrown;
/external/okhttp/okio/okio/src/main/java/okio/
DGzipSink.java89 Throwable thrown = null; in close()
94 thrown = e; in close()
100 if (thrown == null) thrown = e; in close()
106 if (thrown == null) thrown = e; in close()
110 if (thrown != null) Util.sneakyRethrow(thrown); in close()

12345678910>>...12