提交 65a3078a 编写于 作者: G Gonzalo Ruiz de Villa

fix typo: cantain -> contain

上级 a484d7b9
......@@ -115,7 +115,7 @@ public class ExecutionVariableCollectionResource extends BaseExecutionVariableRe
RestVariable[] restVariables = getConverterService().toObject(representation, RestVariable[].class, this);
if(restVariables == null || restVariables.length == 0) {
throw new ActivitiIllegalArgumentException("Request didn't cantain a list of variables to create.");
throw new ActivitiIllegalArgumentException("Request didn't contain a list of variables to create.");
}
RestVariableScope sharedScope = null;
......
......@@ -86,7 +86,7 @@ public class TaskVariableCollectionResource extends TaskVariableBaseResource {
RestVariable[] restVariables = getConverterService().toObject(representation, RestVariable[].class, this);
if(restVariables == null || restVariables.length == 0) {
throw new ActivitiIllegalArgumentException("Request didn't cantain a list of variables to create.");
throw new ActivitiIllegalArgumentException("Request didn't contain a list of variables to create.");
}
RestVariableScope sharedScope = null;
......
......@@ -257,7 +257,7 @@ public class ProcessInstanceVariablesCollectionResourceTest extends BaseRestTest
fail("Exception expected");
} catch (ResourceException expected) {
assertEquals(Status.CLIENT_ERROR_BAD_REQUEST, expected.getStatus());
assertEquals("Request didn't cantain a list of variables to create.", expected.getStatus().getDescription());
assertEquals("Request didn't contain a list of variables to create.", expected.getStatus().getDescription());
}
// Test passing in object instead of array
......@@ -267,7 +267,7 @@ public class ProcessInstanceVariablesCollectionResourceTest extends BaseRestTest
fail("Exception expected");
} catch (ResourceException expected) {
assertEquals(Status.CLIENT_ERROR_BAD_REQUEST, expected.getStatus());
assertEquals("Request didn't cantain a list of variables to create.", expected.getStatus().getDescription());
assertEquals("Request didn't contain a list of variables to create.", expected.getStatus().getDescription());
}
}
......
......@@ -400,7 +400,7 @@ public class TaskVariablesCollectionResourceTest extends BaseRestTestCase {
fail("Exception expected");
} catch (ResourceException expected) {
assertEquals(Status.CLIENT_ERROR_BAD_REQUEST, expected.getStatus());
assertEquals("Request didn't cantain a list of variables to create.", expected.getStatus().getDescription());
assertEquals("Request didn't contain a list of variables to create.", expected.getStatus().getDescription());
}
// Test passing in object instead of array
......@@ -410,7 +410,7 @@ public class TaskVariablesCollectionResourceTest extends BaseRestTestCase {
fail("Exception expected");
} catch (ResourceException expected) {
assertEquals(Status.CLIENT_ERROR_BAD_REQUEST, expected.getStatus());
assertEquals("Request didn't cantain a list of variables to create.", expected.getStatus().getDescription());
assertEquals("Request didn't contain a list of variables to create.", expected.getStatus().getDescription());
}
} finally {
// Clean adhoc-tasks even if test fails
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册