question stringlengths 935 50.2k | answer stringlengths 92 8.26k |
|---|---|
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getInstanceOf' in class 'com.google.api.ads.adwords.lib.factor... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetSessionUtility_fails() {
bootstrapper.getInstanceOf(session, MockSessionUtility.class);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'toString' in class 'com.google.api.ads.admanager.axis.utils.v2... | ```java
@Test(expected = IllegalArgumentException.class)
public void testToString_invalidValue() {
Pql.toString(new MyValue());
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getApiValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetApiValue_mixedSet() {
Pql.getApiValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getNativeValue' in class 'com.google.api.ads.admanager.axis.ut... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetNativeValue_mixedSet() {
Pql.getNativeValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getCsvValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetCsvValue_mixedSet() {
Pql.getCsvValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getCsvValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetCsvValue_targetingValue() {
Pql.getCsvValue(targetingValue1);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_mixedSet() {
Set<Object> mixedTypeSet = new LinkedHashSet<Object>();
mixedTypeSet.add(dateTime1);
mixedTypeSet.add("value1");
Pql.createValue(mixedTypeSet);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_invalidType() {
Pql.createValue(new MyObject());
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_nestedSets() {
Set<Object> set = new LinkedHashSet<Object>();
Set<Object> innerSet = new LinkedHashSet<Object>();
set.add(innerSet);
Pql.createValue(set);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'combineResultSets' in class 'com.google.api.ads.admanager.axis... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCombineResultSet_badColumns() {
Row row1 = new Row();
row1.setValues(new Value[] { textValue1, booleanValue1, numberValue1 });
Row row2 = new Row();
row2.setValues(new Value[] { textValue2, booleanValue2, numberValue2 });
Row r... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'toString' in class 'com.google.api.ads.admanager.axis.utils.v2... | ```java
@Test(expected = IllegalArgumentException.class)
public void testToString_invalidValue() {
Pql.toString(new MyValue());
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getApiValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetApiValue_mixedSet() {
Pql.getApiValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getNativeValue' in class 'com.google.api.ads.admanager.axis.ut... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetNativeValue_mixedSet() {
Pql.getNativeValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getCsvValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetCsvValue_mixedSet() {
Pql.getCsvValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getCsvValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetCsvValue_targetingValue() {
Pql.getCsvValue(targetingValue1);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_mixedSet() {
Set<Object> mixedTypeSet = new LinkedHashSet<Object>();
mixedTypeSet.add(dateTime1);
mixedTypeSet.add("value1");
Pql.createValue(mixedTypeSet);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_invalidType() {
Pql.createValue(new MyObject());
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_nestedSets() {
Set<Object> set = new LinkedHashSet<Object>();
Set<Object> innerSet = new LinkedHashSet<Object>();
set.add(innerSet);
Pql.createValue(set);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'combineResultSets' in class 'com.google.api.ads.admanager.axis... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCombineResultSet_badColumns() {
Row row1 = new Row();
row1.setValues(new Value[] { textValue1, booleanValue1, numberValue1 });
Row row2 = new Row();
row2.setValues(new Value[] { textValue2, booleanValue2, numberValue2 });
Row r... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'toString' in class 'com.google.api.ads.admanager.axis.utils.v2... | ```java
@Test(expected = IllegalArgumentException.class)
public void testToString_invalidValue() {
Pql.toString(new MyValue());
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getApiValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetApiValue_mixedSet() {
Pql.getApiValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getNativeValue' in class 'com.google.api.ads.admanager.axis.ut... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetNativeValue_mixedSet() {
Pql.getNativeValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getCsvValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetCsvValue_mixedSet() {
Pql.getCsvValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getCsvValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetCsvValue_targetingValue() {
Pql.getCsvValue(targetingValue1);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_mixedSet() {
Set<Object> mixedTypeSet = new LinkedHashSet<Object>();
mixedTypeSet.add(dateTime1);
mixedTypeSet.add("value1");
Pql.createValue(mixedTypeSet);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_invalidType() {
Pql.createValue(new MyObject());
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_nestedSets() {
Set<Object> set = new LinkedHashSet<Object>();
Set<Object> innerSet = new LinkedHashSet<Object>();
set.add(innerSet);
Pql.createValue(set);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'combineResultSets' in class 'com.google.api.ads.admanager.axis... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCombineResultSet_badColumns() {
Row row1 = new Row();
row1.setValues(new Value[] { textValue1, booleanValue1, numberValue1 });
Row row2 = new Row();
row2.setValues(new Value[] { textValue2, booleanValue2, numberValue2 });
Row r... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'toString' in class 'com.google.api.ads.admanager.axis.utils.v2... | ```java
@Test(expected = IllegalArgumentException.class)
public void testToString_invalidValue() {
Pql.toString(new MyValue());
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getApiValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetApiValue_mixedSet() {
Pql.getApiValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getNativeValue' in class 'com.google.api.ads.admanager.axis.ut... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetNativeValue_mixedSet() {
Pql.getNativeValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getCsvValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetCsvValue_mixedSet() {
Pql.getCsvValue(mixedSetValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'getCsvValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testGetCsvValue_targetingValue() {
Pql.getCsvValue(targetingValue1);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_mixedSet() {
Set<Object> mixedTypeSet = new LinkedHashSet<Object>();
mixedTypeSet.add(dateTime1);
mixedTypeSet.add("value1");
Pql.createValue(mixedTypeSet);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_invalidType() {
Pql.createValue(new MyObject());
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createValue' in class 'com.google.api.ads.admanager.axis.utils... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCreateValue_nestedSets() {
Set<Object> set = new LinkedHashSet<Object>();
Set<Object> innerSet = new LinkedHashSet<Object>();
set.add(innerSet);
Pql.createValue(set);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'combineResultSets' in class 'com.google.api.ads.admanager.axis... | ```java
@Test(expected = IllegalArgumentException.class)
public void testCombineResultSet_badColumns() {
Row row1 = new Row();
row1.setValues(new Value[] { textValue1, booleanValue1, numberValue1 });
Row row2 = new Row();
row2.setValues(new Value[] { textValue2, booleanValue2, numberValue2 });
Row r... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createSoapClient' in class 'com.google.api.ads.common.lib.soap... | ```java
@Test(expected = ServiceException.class)
public void testCreateSoapClient_notJaxWsCompatible() {
jaxWsHandler.createSoapClient(Mockito.mock(SoapServiceDescriptor.class));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'setHeader' in class 'com.google.api.ads.common.lib.soap.jaxws.... | ```java
@Test(expected = ServiceException.class)
public void testSetHeader_fail() {
String namespace = "namespace";
String headerName = "headerName";
Object headerValue = new Object();
jaxWsHandler.setHeader(mockSoapClient, namespace, headerName, headerValue);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'setHeaderChildString' in class 'com.google.api.ads.common.lib.... | ```java
@Test(expected = NullPointerException.class)
public void testSetHeaderChildString_fail_noParents() throws Exception {
when(mockSoapClient.getBinding()).thenReturn(mockBinding);
when(mockBinding.getHandlerChain()).thenReturn(handlerChain);
jaxWsHandler.setHeaderChildString(mockSoapClient, "nonexisten... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'setHeaderChildString' in class 'com.google.api.ads.common.lib.... | ```java
@Test(expected = NullPointerException.class)
public void testSetHeaderChildString_fail_noMatchingParent() throws Exception {
String parentNamespace = "parentNamespace";
String parentName = "parentName";
when(mockSoapClient.getBinding()).thenReturn(mockBinding);
when(mockBinding.getHandlerChain()... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createSoapHeaderElement' in class 'com.google.api.ads.common.l... | ```java
@Test(expected = UnsupportedOperationException.class)
public void testCreateSoapHeaderElement() {
jaxWsHandler.createSoapHeaderElement(new QName("website", "name"));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'invoke' in class 'com.google.api.ads.common.lib.soap.axis.Http... | ```java
@Test(expected = AxisFault.class)
public void testInvokeReturnsNonXmlResponse() throws AxisFault {
MessageContext messageContext = new MessageContext(axisEngine);
messageContext.setRequestMessage(requestMessage);
messageContext.setProperty(MessageContext.TRANS_URL, mockHttpServer.getServerUrl());
... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'invoke' in class 'com.google.api.ads.common.lib.soap.axis.Http... | ```java
@Test(expected = AxisFault.class)
public void testInvokeWithoutContentType() throws AxisFault {
MessageContext messageContext = new MessageContext(axisEngine);
messageContext.setRequestMessage(requestMessage);
messageContext.setProperty(MessageContext.TRANS_URL, mockHttpServer.getServerUrl());
m... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'invoke' in class 'com.google.api.ads.common.lib.soap.axis.Http... | ```java
@Test(expected = AxisFault.class)
public void testInvokeWithoutMessageContext() throws AxisFault {
httpHandler.invoke(null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'invoke' in class 'com.google.api.ads.common.lib.soap.axis.Http... | ```java
@Test(expected = AxisFault.class)
public void testInvokeWithoutRequestMessage() throws AxisFault {
MessageContext messageContext = new MessageContext(axisEngine);
httpHandler.invoke(messageContext);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'invoke' in class 'com.google.api.ads.common.lib.soap.axis.Http... | ```java
@Test(expected = AxisFault.class)
public void testInvokeWithoutRequestUrl() throws AxisFault {
MessageContext messageContext = new MessageContext(axisEngine);
messageContext.setRequestMessage(requestMessage);
httpHandler.invoke(messageContext);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'invoke' in class 'com.google.api.ads.common.lib.soap.axis.Http... | ```java
@Test(expected = AxisFault.class)
public void testInvokeSetsTimeout() {
MessageContext messageContext = new MessageContext(axisEngine);
messageContext.setRequestMessage(requestMessage);
messageContext.setProperty(MessageContext.TRANS_URL, "https://www.example.com");
MockLowLevelHttpResponse lowL... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'createSoapClient' in class 'com.google.api.ads.common.lib.soap... | ```java
@Test(expected = ServiceException.class)
public void testCreateSoapClient_failNotAxisCompatible() {
axisHandler.createSoapClient(Mockito.mock(SoapServiceDescriptor.class));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'setHeaderChild' in class 'com.google.api.ads.common.lib.soap.a... | ```java
@Test(expected = NullPointerException.class)
public void testSetChildHeader_failParentMissing() {
axisHandler.setHeaderChild(stub, "parent", "child", "123");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.registry.zookeeper.Z... | ```java
@Test(expected = NullPointerException.class)
public void testNullCurator() throws Exception {
new ZooKeeperServiceRegistry((CuratorFramework) null, mock(MetricRegistry.class));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.registry.zookeeper.Z... | ```java
@Test(expected = NullPointerException.class)
public void testNullFactory() {
new ZooKeeperServiceRegistry((ZooKeeperServiceRegistry.NodeFactory) null, mock(MetricRegistry.class));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.registry.zookeeper.Z... | ```java
@Test(expected = NullPointerException.class)
public void testNullMetricRegistry() {
new ZooKeeperServiceRegistry(_nodeFactory, null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'register' in class 'com.bazaarvoice.ostrich.registry.zookeeper... | ```java
@Test(expected = NullPointerException.class)
public void testRegisterNullService() throws Exception {
_registry.register(null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'unregister' in class 'com.bazaarvoice.ostrich.registry.zookeep... | ```java
@Test(expected = NullPointerException.class)
public void testUnregisterNullService() throws Exception {
_registry.unregister(null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'register' in class 'com.bazaarvoice.ostrich.registry.zookeeper... | ```java
@Test(expected = IllegalStateException.class)
public void testRegisterAfterClose() throws Exception {
_registry.close();
_registry.register(FOO);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'unregister' in class 'com.bazaarvoice.ostrich.registry.zookeep... | ```java
@Test(expected = IllegalStateException.class)
public void testUnregisterAfterClose() throws Exception {
_registry.close();
_registry.unregister(FOO);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'register' in class 'com.bazaarvoice.ostrich.registry.zookeeper... | ```java
@Test(expected = IllegalStateException.class)
public void testLargePayloadSize() {
int padding = ServiceEndPointJsonCodec.toJson(FOO).getBytes(Charsets.UTF_8).length;
String payload = Strings.repeat("x", MAX_DATA_SIZE - padding);
_registry.register(newEndPoint(FOO.getServiceName(), FOO.getId(), payl... |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.examples.dictionary.... | ```java
@Test(expected = IllegalArgumentException.class)
public void testEmptyRange() {
new WordRange("");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.examples.dictionary.... | ```java
@Test(expected = IllegalArgumentException.class)
public void testReverseRange() {
new WordRange("z-a");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.examples.dictionary.... | ```java
@Test(expected = IllegalArgumentException.class)
public void testRangeOverlapSecondContained() {
new WordRange("a-z,b-y");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.examples.dictionary.... | ```java
@Test(expected = IllegalArgumentException.class)
public void testRangeOverlapFirstContained() {
new WordRange("b-y,a-z");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.examples.dictionary.... | ```java
@Test(expected = IllegalArgumentException.class)
public void testRangeOverlapEdgeHigh() {
new WordRange("a-k,k-z");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.examples.dictionary.... | ```java
@Test(expected = IllegalArgumentException.class)
public void testRangeOverlapEdgeLow() {
new WordRange("k-z,a-k");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.discovery.FixedHostD... | ```java
@Test(expected = NullPointerException.class)
public void testNullEndPoint() {
new FixedHostDiscovery((ServiceEndPoint) null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.discovery.FixedHostD... | ```java
@Test(expected = NullPointerException.class)
public void testNullEndPoints() {
new FixedHostDiscovery(Arrays.asList(FOO, BAR, null));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.discovery.FixedHostD... | ```java
@Test(expected = NullPointerException.class)
public void testNullEndPointArray() {
new FixedHostDiscovery((ServiceEndPoint[]) null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.discovery.FixedHostD... | ```java
@Test(expected = NullPointerException.class)
public void testNullEndPointIterable() {
new FixedHostDiscovery((Iterable<ServiceEndPoint>) null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method '<init>' in class 'com.bazaarvoice.ostrich.discovery.Configured... | ```java
@Test(expected = NullPointerException.class)
public void testNullMap() {
new ConfiguredFixedHostDiscoverySource<Void>(null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'forClass' in class 'com.bazaarvoice.ostrich.metrics.Metrics' f... | ```java
@Test(expected = NullPointerException.class)
public void testNullRegistry() {
Metrics.forClass(null, Service.class);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'forClass' in class 'com.bazaarvoice.ostrich.metrics.Metrics' f... | ```java
@Test(expected = NullPointerException.class)
public void testNullDomain() {
Metrics.forClass(_registry, null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'gauge' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = NullPointerException.class)
public void testNullGauge() {
_metrics.gauge("serviceName", "name", null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'gauge' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@SuppressWarnings("unchecked")
@Test(expected = NullPointerException.class)
public void testNewGaugeNullServiceName() {
_metrics.gauge(null, "name", mock(Gauge.class));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'gauge' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@SuppressWarnings("unchecked")
@Test(expected = IllegalArgumentException.class)
public void testNewGaugeEmptyServiceName() {
_metrics.gauge("", "name", mock(Gauge.class));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'gauge' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@SuppressWarnings("unchecked")
@Test(expected = NullPointerException.class)
public void testNewGaugeNullName() {
_metrics.gauge("serviceName", null, mock(Gauge.class));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'gauge' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@SuppressWarnings("unchecked")
@Test(expected = IllegalArgumentException.class)
public void testNewGaugeEmptyName() {
_metrics.gauge("serviceName", "", mock(Gauge.class));
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'counter' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Cla... | ```java
@Test(expected = NullPointerException.class)
public void testNewCounterNullServiceName() {
_metrics.counter(null, "name");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'counter' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Cla... | ```java
@Test(expected = NullPointerException.class)
public void testNewCounterNullName() {
_metrics.counter("serviceName", null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'counter' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Cla... | ```java
@Test(expected = IllegalArgumentException.class)
public void testNewCounterEmptyServiceName() {
_metrics.counter("", "name");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'counter' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Cla... | ```java
@Test(expected = IllegalArgumentException.class)
public void testNewCounterEmptyName() {
_metrics.counter("serviceName", "");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'histogram' in class 'com.bazaarvoice.ostrich.metrics.Metrics$C... | ```java
@Test(expected = NullPointerException.class)
public void testNewHistogramNullServiceName() {
_metrics.histogram(null, "name");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'histogram' in class 'com.bazaarvoice.ostrich.metrics.Metrics$C... | ```java
@Test(expected = NullPointerException.class)
public void testNewHistogramNullName() {
_metrics.histogram("serviceName", null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'histogram' in class 'com.bazaarvoice.ostrich.metrics.Metrics$C... | ```java
@Test(expected = IllegalArgumentException.class)
public void testNewHistogramEmptyServiceName() {
_metrics.histogram("", "name");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'histogram' in class 'com.bazaarvoice.ostrich.metrics.Metrics$C... | ```java
@Test(expected = IllegalArgumentException.class)
public void testNewHistogramEmptyName() {
_metrics.histogram("serviceName", "");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'meter' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = NullPointerException.class)
public void testNewMeterNullServiceName() {
_metrics.meter(null, "name");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'meter' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = NullPointerException.class)
public void testNewMeterNullName() {
_metrics.meter("serviceName", null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'meter' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = IllegalArgumentException.class)
public void testNewMeterEmptyServiceName() {
_metrics.meter("", "name");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'meter' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = IllegalArgumentException.class)
public void testNewMeterEmptyName() {
_metrics.meter("serviceName", "");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'timer' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = NullPointerException.class)
public void testNewTimerNullServiceName() {
_metrics.timer(null, "name");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'timer' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = NullPointerException.class)
public void testNewTimerNullName() {
_metrics.timer("serviceName", null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'timer' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = IllegalArgumentException.class)
public void testNewTimerEmptyServiceName() {
_metrics.timer("", "name");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'timer' in class 'com.bazaarvoice.ostrich.metrics.Metrics$Class... | ```java
@Test(expected = IllegalArgumentException.class)
public void testNewTimerEmptyName() {
_metrics.timer("serviceName", "");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'forInstance' in class 'com.bazaarvoice.ostrich.metrics.Metrics... | ```java
@Test(expected = NullPointerException.class)
public void testNullRegistry() {
Metrics.forInstance(null, INSTANCE_ONE, "serviceName");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'forInstance' in class 'com.bazaarvoice.ostrich.metrics.Metrics... | ```java
@Test(expected = NullPointerException.class)
public void testNullInstance() {
Metrics.forInstance(_registry, null, "serviceName");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'forInstance' in class 'com.bazaarvoice.ostrich.metrics.Metrics... | ```java
@Test(expected = NullPointerException.class)
public void testNullServiceName() {
Metrics.forInstance(_registry, INSTANCE_ONE, null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'forInstance' in class 'com.bazaarvoice.ostrich.metrics.Metrics... | ```java
@Test(expected = IllegalArgumentException.class)
public void testEmptyServiceName() {
Metrics.forInstance(_registry, INSTANCE_ONE, "");
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'choose' in class 'com.bazaarvoice.ostrich.loadbalance.RandomAl... | ```java
@Test(expected = NullPointerException.class)
public void testNullIterable() {
new RandomAlgorithm().choose(null, null);
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'build' in class 'com.bazaarvoice.ostrich.ServiceEndPointBuilde... | ```java
@Test(expected = IllegalStateException.class)
public void testMissingServiceName() {
new ServiceEndPointBuilder().withId("id").build();
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'build' in class 'com.bazaarvoice.ostrich.ServiceEndPointBuilde... | ```java
@Test(expected = IllegalStateException.class)
public void testMissingId() {
new ServiceEndPointBuilder().withServiceName("service").build();
}
```
</s> |
<s>[INST] <<SYS>>
You are a helpful programming assistant and an expert Java programmer. You are helping a user writing exceptional-behavior tests for their Java code.
<</SYS>>
Please complete an exceptional behavior test method in Java to test the method 'execute' in class 'com.bazaarvoice.ostrich.pool.ServicePool' f... | ```java
@Test(expected = MaxRetriesException.class)
public void testEvictsCachedInstancesOnServiceException() {
ServicePool<Service> pool = newPool(CACHE_ONE_INSTANCE_PER_ENDPOINT);
Service service = pool.execute(NEVER_RETRY, IDENTITY_CALLBACK);
when(_serviceFactory.isHealthy(FOO_ENDPOINT)).thenReturn(true)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.