Skip to content

Commit 031af0b

Browse files
committed
test(assistant-v1): clean ITs
1 parent 82ef647 commit 031af0b

File tree

1 file changed

+5
-47
lines changed

1 file changed

+5
-47
lines changed

assistant/src/test/java/com/ibm/watson/assistant/v1/AssistantServiceIT.java

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,8 @@ public void testRuntimeResponseGenericRuntimeResponseTypeText() {
8484
MessageResponse response = service.message(options).execute().getResult();
8585
System.out.println(response);
8686

87-
RuntimeResponseGenericRuntimeResponseTypeText
88-
runtimeResponseGenericRuntimeResponseTypeText =
89-
(RuntimeResponseGenericRuntimeResponseTypeText)
90-
response.getOutput().getGeneric().get(0);
87+
RuntimeResponseGenericRuntimeResponseTypeText runtimeResponseGenericRuntimeResponseTypeText =
88+
(RuntimeResponseGenericRuntimeResponseTypeText) response.getOutput().getGeneric().get(0);
9189

9290
assertNotNull(runtimeResponseGenericRuntimeResponseTypeText);
9391
}
@@ -102,55 +100,15 @@ public void testRuntimeResponseGenericRuntimeResponseTypeChannelTransfer() {
102100
System.out.println(response);
103101

104102
RuntimeResponseGenericRuntimeResponseTypeChannelTransfer
105-
runtimeResponseGenericRuntimeResponseTypeChannelTransfer =
103+
runtimeResponseGenericRuntimeResponseTypeChannelTransfer =
106104
(RuntimeResponseGenericRuntimeResponseTypeChannelTransfer)
107-
response.getOutput().getGeneric().get(0);
105+
response.getOutput().getGeneric().get(0);
108106
ChannelTransferInfo channelTransferInfo =
109-
runtimeResponseGenericRuntimeResponseTypeChannelTransfer.transferInfo();
107+
runtimeResponseGenericRuntimeResponseTypeChannelTransfer.transferInfo();
110108

111109
assertNotNull(channelTransferInfo);
112110
}
113111

114-
/** Test RuntimeResponseGenericRuntimeResponseTypeChannelTransfer. */
115-
@Test
116-
public void testRuntimeResponseGenericRuntimeResponseTypeChannelTransferRequest() {
117-
MessageInput input = new MessageInput();
118-
input.setText("test sdk");
119-
120-
ChannelTransferTargetChat channelTransferTargetChat = new ChannelTransferTargetChat.Builder()
121-
.url("google.com").build();
122-
ChannelTransferTarget transferTarget = new ChannelTransferTarget.Builder()
123-
.chat(channelTransferTargetChat).build();
124-
ChannelTransferInfo channelTransferInfo = new ChannelTransferInfo.Builder()
125-
.target(transferTarget).build();
126-
RuntimeResponseGenericRuntimeResponseTypeChannelTransfer testTransfer =
127-
new RuntimeResponseGenericRuntimeResponseTypeChannelTransfer.Builder()
128-
.transferInfo(channelTransferInfo)
129-
.responseType("channel_transfer")
130-
.messageToUser("testing message").build();
131-
ArrayList<LogMessage> list = new ArrayList<LogMessage>();
132-
ArrayList<String> listString = new ArrayList<>();
133-
OutputData outputData = new OutputData.Builder()
134-
.addGeneric(testTransfer)
135-
.logMessages(list)
136-
.text(listString).build();
137-
MessageOptions options = new MessageOptions.Builder(workspaceId)
138-
.input(input)
139-
.output(outputData)
140-
.build();
141-
MessageResponse response = service.message(options).execute().getResult();
142-
System.out.println(response);
143-
144-
RuntimeResponseGenericRuntimeResponseTypeChannelTransfer
145-
runtimeResponseGenericRuntimeResponseTypeChannelTransfer =
146-
(RuntimeResponseGenericRuntimeResponseTypeChannelTransfer)
147-
response.getOutput().getGeneric().get(0);
148-
// ChannelTransferInfo channelTransferInfo =
149-
// runtimeResponseGenericRuntimeResponseTypeChannelTransfer.transferInfo();
150-
//
151-
// assertNull(channelTransferInfo);
152-
}
153-
154112
/**
155113
* Test Example.
156114
*

0 commit comments

Comments
 (0)