Package fr.norsys.mapper.console.test

Examples of fr.norsys.mapper.console.test.ResourceNameComparator


  }
 
  public void test01Get(){
    if(log.isDebugEnabled()) log.debug("*** test01Get ***");
    List applications = new ArrayList();
    Collection resources =new  TreeSet(new ResourceNameComparator());
    Collection attributes = new TreeSet(new AttributeNameComparator());
    Attribute attribute = new Attribute("test");
    String currentAttribute = attribute.getId();
    Resource resource = new Resource("test");
    Application application = new Application("test");
View Full Code Here


 
  public void test01Add() throws Exception {
    if(log.isDebugEnabled()) log.debug("*** test01Add ***");
    List applications = new ArrayList();
    Resource resource = new Resource("test");
    Collection resources = new TreeSet(new ResourceNameComparator());
    resources.add(resource);
    Application application = new Application("test");
    application.setResources(resources);
    applications.add(application);

View Full Code Here

  }
 
  public void test01Modify() throws Exception {
    if(log.isDebugEnabled()) log.debug("*** test01Modify ***");
    List applications = new ArrayList();
    Collection resources =new  TreeSet(new ResourceNameComparator());
    Collection attributes = new TreeSet(new AttributeNameComparator());
    Attribute attribute = new Attribute("attribute");
    String currentAttribute = attribute.getId();
    Resource resource = new Resource("test");
    String currentResource = resource.getId();
View Full Code Here

   
  }
  public void testDeleteRes() throws Exception {
    ResourceServiceImpl resourceService = new ResourceServiceImpl();
    List applications = new ArrayList();
    Collection resources = new TreeSet(new ResourceNameComparator());
    Collection resources2 = new TreeSet(new ResourceNameComparator());
    Resource resource = new Resource("test");
    String currentResource = resource.getId();
    resources.add(resource);
    Resource resource2 = new Resource("test2");
    String currentResource2 = resource2.getId();
View Full Code Here

  }
 
  public void test01ListAttr() {
    if(log.isDebugEnabled()) log.debug("*** test01ListAttr ***");
    List applications = new ArrayList();
    Collection resources =new  TreeSet(new ResourceNameComparator());
    Resource resource = new Resource("test");
    String currentResource = resource.getId();
    resources.add(resource);
    Application application = new Application("test");
    application.setResources(resources);
View Full Code Here

  }
 
  public void test02ListAttr() {
    if(log.isDebugEnabled()) log.debug("*** test02ListAttr ***");
    List applications = new ArrayList();
    Collection resources =new  TreeSet(new ResourceNameComparator());
    Resource resource = new Resource("test");
    String currentResource = resource.getId();
    resources.add(resource);
    Resource resource2 = new Resource("test2");
    String currentResource2 = resource2.getId();
View Full Code Here

  }
 
  public void test01Get(){
    if(log.isDebugEnabled()) log.debug("*** test01Get ***");
    List applications = new ArrayList();
    Collection resources =new  TreeSet(new ResourceNameComparator());
    Collection resources2 =new  TreeSet(new ResourceNameComparator());
    Resource resource = new Resource("test");
    String currentResource = resource.getId();
    resources.add(resource);
    Resource resource2 = new Resource("test2");
    String currentResource2 = resource2.getId();
View Full Code Here

  }
 
  public void test01Modify() throws Exception {
    if(log.isDebugEnabled()) log.debug("*** test01Modify ***");
    List applications = new ArrayList();
    Collection resources =new  TreeSet(new ResourceNameComparator());
    Collection resources2 =new  TreeSet(new ResourceNameComparator());
    Resource resource = new Resource("test");
    String currentResource = resource.getId();
    resources.add(resource);
   
    Resource resource2 = new Resource("test2");
View Full Code Here

  }
 
  public void test01deleteAttr() throws Exception {
    if(log.isDebugEnabled()) log.debug("*** test01deleteAttr ***");
    List applications = new ArrayList();
    Collection resources =new  TreeSet(new ResourceNameComparator());
    Collection attributes = new TreeSet(new AttributeNameComparator());
    Attribute attribute = new Attribute("test");
    String currentAttribute = attribute.getId();
    Resource resource = new Resource("test");
    String currentResource = resource.getId();
View Full Code Here

TOP

Related Classes of fr.norsys.mapper.console.test.ResourceNameComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.