Ignore:
Timestamp:
08/11/14 16:07:55 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Added group service. Tested via the tomcat on loclahots (test URI and postman), old unit tests are adjusted and work well. Todo: retest on localhost tomcat, look at run-time exceptions, add new unit tests, adjust front-end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/rss/PrintXmlFromRssRunner.java

    r4098 r5549  
    55import clarin.cmdi.componentregistry.ComponentRegistryFactory;
    66import clarin.cmdi.componentregistry.DatesHelper;
     7import clarin.cmdi.componentregistry.ItemNotFoundException;
    78import clarin.cmdi.componentregistry.MDMarshaller;
     9import clarin.cmdi.componentregistry.UserUnauthorizedException;
    810import clarin.cmdi.componentregistry.impl.ComponentUtils;
    911import clarin.cmdi.componentregistry.model.BaseDescription;
     
    2022
    2123import javax.xml.bind.JAXBException;
    22 import javax.xml.transform.TransformerException;
    23 
    24 import org.junit.BeforeClass;
    2524import org.springframework.beans.factory.annotation.Autowired;
    2625import org.springframework.context.ApplicationContext;
     
    9392     * input: sort of rss -- profiles, or comopnents, or comments (see below the prompt string)
    9493     */
    95     public static void main(String args[]) throws ComponentRegistryException, ParseException, IOException, JAXBException {
     94    public static void main(String args[]) throws ComponentRegistryException, ParseException, IOException, JAXBException, UserUnauthorizedException, ItemNotFoundException {
    9695
    9796        System.out.println("Type 1 or 2, or 3, or 4, \n "
     
    137136                System.exit(1);
    138137            }
    139             final List<Comment> comments = (kind == 3) ? registry.getCommentsInProfile(buffer, null) : registry.getCommentsInComponent(buffer, null);
    140             final String name = (kind == 3) ? registry.getProfileDescription(buffer).getName() : registry.getComponentDescription(buffer).getName();
     138            final List<Comment> comments = (kind == 3) ? registry.getCommentsInProfile(buffer) : registry.getCommentsInComponent(buffer);
     139            final String name = (kind == 3) ? registry.getProfileDescriptionAccessControlled(buffer).getName() : registry.getComponentDescriptionAccessControlled(buffer).getName();
    141140            rss = makeRssForComments(comments, kind, baseUri, 10, buffer, name);
    142141
Note: See TracChangeset for help on using the changeset viewer.