Ignore:
Timestamp:
08/22/14 18:23:26 (10 years ago)
Author:
olhsha@mpi.nl
Message:

little fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/model/CommentResponseTest.java

    r4138 r5603  
    3535        CommentResponse resp = new CommentResponse();
    3636        resp.setRegistered(false);
    37         resp.setIsInUserSpace(true);
     37        resp.setIsPrivate(true);
    3838        resp.addError("Error 1");
    3939        resp.addError("Error 2, <!-- to be escaped -->");
     
    4242        String expected = "";
    4343        expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
    44         expected += "<commentResponse registered=\"false\" isInUserSpace=\"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";
    4545        expected += "    <errors>\n";
    4646        expected += "        <error>Error 1</error>\n";
     
    6464        CommentResponse resp = new CommentResponse();
    6565        resp.setRegistered(true);
    66         resp.setIsInUserSpace(false);
     66        resp.setIsPrivate(false);
    6767        resp.setComment(getComment());
    6868        ByteArrayOutputStream out = new ByteArrayOutputStream();
     
    7070        String expected = "";
    7171        expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
    72         expected += "<commentResponse registered=\"true\" isInUserSpace=\"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";
    7373        expected += "    <errors/>\n";
    7474        expected += "    <comment>\n";
Note: See TracChangeset for help on using the changeset viewer.