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/RegisterResponseTest.java

    r4139 r5603  
    2828                resp.setRegistered(false);
    2929                resp.setIsProfile(true);
    30                 resp.setIsInUserSpace(true);
     30                resp.setIsPrivate(true);
    3131                resp.addError("Error 1");
    3232                resp.addError("Error 2, <!-- to be escaped -->");
     
    3535                String expected = "";
    3636                expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
    37                 expected += "<registerResponse isProfile=\"true\" registered=\"false\" isInUserSpace=\"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";
    3838                expected += "    <errors>\n";
    3939                expected += "        <error>Error 1</error>\n";
     
    5454                resp.setRegistered(true);
    5555                resp.setIsProfile(true);
    56                 resp.setIsInUserSpace(false);
     56                resp.setIsPrivate(false);
    5757                resp.setDescription(getProfileDescription());
    5858                ByteArrayOutputStream out = new ByteArrayOutputStream();
     
    6060                String expected = "";
    6161                expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
    62                 expected += "<registerResponse isProfile=\"true\" registered=\"true\" isInUserSpace=\"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";
    6363                expected += "    <errors/>\n";
    6464                expected += "    <description xsi:type=\"profileDescription\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n";
     
    8787                resp.setRegistered(true);
    8888                resp.setIsProfile(false);
    89                 resp.setIsInUserSpace(true);
     89                resp.setIsPrivate(true);
    9090                resp.setDescription(getComponentDescription());
    9191                ByteArrayOutputStream out = new ByteArrayOutputStream();
     
    9393                String expected = "";
    9494                expected += "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
    95                 expected += "<registerResponse isProfile=\"false\" registered=\"true\" isInUserSpace=\"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";
    9696                expected += "    <errors/>\n";
    9797                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.