Changeset 5603 for ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/model/CommentResponseTest.java
- Timestamp:
- 08/22/14 18:23:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/model/CommentResponseTest.java
r4138 r5603 35 35 CommentResponse resp = new CommentResponse(); 36 36 resp.setRegistered(false); 37 resp.setIs InUserSpace(true);37 resp.setIsPrivate(true); 38 38 resp.addError("Error 1"); 39 39 resp.addError("Error 2, <!-- to be escaped -->"); … … 42 42 String expected = ""; 43 43 expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"; 44 expected += "<commentResponse registered=\"false\" is InUserSpace=\"true\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n";44 expected += "<commentResponse registered=\"false\" isPrivate=\"true\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n"; 45 45 expected += " <errors>\n"; 46 46 expected += " <error>Error 1</error>\n"; … … 64 64 CommentResponse resp = new CommentResponse(); 65 65 resp.setRegistered(true); 66 resp.setIs InUserSpace(false);66 resp.setIsPrivate(false); 67 67 resp.setComment(getComment()); 68 68 ByteArrayOutputStream out = new ByteArrayOutputStream(); … … 70 70 String expected = ""; 71 71 expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"; 72 expected += "<commentResponse registered=\"true\" is InUserSpace=\"false\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n";72 expected += "<commentResponse registered=\"true\" isPrivate=\"false\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n"; 73 73 expected += " <errors/>\n"; 74 74 expected += " <comment>\n";
Note: See TracChangeset
for help on using the changeset viewer.