|
Testcase Name: setConstraint(String, Object)
Testcase Number: EMB147
setup: create testInstance of ProtocolConstraints
test procedure:
1.call setConstraint(null, random String)
expected result: NullPointerException
2.call setConstraint("test", null)
expected result: NullPointerException
3.call setConstraint("test", random String)
call getConstraint("test")
expected result: random String that was passed in
4.a.call setConstraint("SERVER_TYPE", array of Strings)
call getConstraint("SERVER_TYPE")
expected result: array of Strings passed in
b.call setConstraint("SERVER_TYPE", random Object)
expected result: IllegalArgumentException
5.a.call setConstraint("CLIENT_TYPE", array of Strings)
call getConstraint("CLIENT_TYPE")
expected result: array of Strings passed in
b.call setConstraint("CLIENT_TYPE", random Object)
expected result: IllegalArgumentException
|