Changeset 5603 for ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/model/RegisterResponseTest.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/RegisterResponseTest.java
r4139 r5603 28 28 resp.setRegistered(false); 29 29 resp.setIsProfile(true); 30 resp.setIs InUserSpace(true);30 resp.setIsPrivate(true); 31 31 resp.addError("Error 1"); 32 32 resp.addError("Error 2, <!-- to be escaped -->"); … … 35 35 String expected = ""; 36 36 expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"; 37 expected += "<registerResponse isProfile=\"true\" registered=\"false\" is InUserSpace=\"true\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n";37 expected += "<registerResponse isProfile=\"true\" registered=\"false\" isPrivate=\"true\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n"; 38 38 expected += " <errors>\n"; 39 39 expected += " <error>Error 1</error>\n"; … … 54 54 resp.setRegistered(true); 55 55 resp.setIsProfile(true); 56 resp.setIs InUserSpace(false);56 resp.setIsPrivate(false); 57 57 resp.setDescription(getProfileDescription()); 58 58 ByteArrayOutputStream out = new ByteArrayOutputStream(); … … 60 60 String expected = ""; 61 61 expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"; 62 expected += "<registerResponse isProfile=\"true\" registered=\"true\" is InUserSpace=\"false\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n";62 expected += "<registerResponse isProfile=\"true\" registered=\"true\" isPrivate=\"false\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n"; 63 63 expected += " <errors/>\n"; 64 64 expected += " <description xsi:type=\"profileDescription\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n"; … … 87 87 resp.setRegistered(true); 88 88 resp.setIsProfile(false); 89 resp.setIs InUserSpace(true);89 resp.setIsPrivate(true); 90 90 resp.setDescription(getComponentDescription()); 91 91 ByteArrayOutputStream out = new ByteArrayOutputStream(); … … 93 93 String expected = ""; 94 94 expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"; 95 expected += "<registerResponse isProfile=\"false\" registered=\"true\" is InUserSpace=\"true\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n";95 expected += "<registerResponse isProfile=\"false\" registered=\"true\" isPrivate=\"true\" xmlns:ns2=\"http://www.w3.org/1999/xlink\">\n"; 96 96 expected += " <errors/>\n"; 97 97 expected += " <description xsi:type=\"componentDescription\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n";
Note: See TracChangeset
for help on using the changeset viewer.