Package eu.planets_project.services.datatypes

Examples of eu.planets_project.services.datatypes.ServiceDescription$Builder


      String err = "Unable to find service corresponding to endpoint or uniquly identifying it: "+ sendsURL;
      log.debug(err);
      throw new Exception(err);
    }
    else{
      ServiceDescription sdesc = regSer.get(0);
      return sdesc;
    }
    }
View Full Code Here


    /**
     * Test the services describe() method
     */
    @Test
    public void testDescribe() {
        ServiceDescription desc = ids.describe();
        System.out.println("Recieved service description: " + desc);
        assertTrue("The ServiceDescription should not be NULL.", desc != null );
    }
View Full Code Here

     * {@link eu.planets_project.ifr.core.simple.impl.SimpleIdentifyService#describe()}
     * .
     */
    @Test
    public void testDescribe() {
        ServiceDescription desc = ids.describe();
        System.out.println("Recieved service description: " + desc);
        assertTrue("The ServiceDescription should not be NULL.", desc != null);
    }
View Full Code Here

    /**
     * Test the Description method.
     */
    @Test
    public void testDescribe() {
        ServiceDescription desc = dom.describe();
        System.out.println("Recieved service description: " + desc);
        assertTrue("The ServiceDescription should not be NULL.", desc != null);
    }
View Full Code Here

  }
 
  @Test
  public void testDescribe() {
    System.out.println("running Service at: " + validator.QNAME);
        ServiceDescription desc = validator.describe();
        System.out.println("Recieved service description: " + desc.toXmlFormatted());
        assertTrue("The ServiceDescription should not be NULL.", desc != null );
  }
View Full Code Here

    /**
     * Test the Description method.
     */
    @Test
    public final void testDescribe() {
        final ServiceDescription desc = dom.describe();
        System.out.println("Recieved service description: "
            + desc.toXmlFormatted());
        assertNotNull("The ServiceDescription should not be NULL.", desc);
    }
View Full Code Here

        List<ServiceDescription> services = registry
            .query(new ServiceDescription.Builder(null,
                serviceClass).build());
        Iterator<ServiceDescription> it = services.iterator();
        while (it.hasNext()) {
          ServiceDescription sd = it.next();
          serviceNames.add(new SelectItem(
              sd.getEndpoint().toString(), sd.getName()));
          serviceNameMap.put(sd.getEndpoint().toString(), sd
              .getName());
        }
      }
    }
View Full Code Here

        characterizer = new MetadataExtractor();
    }

    @Test
    public void testServiceDescription() {
        ServiceDescription description = characterizer.describe();
        /*
         * We expect to have at least as many input formats (PRONOM) as there
         * are supported file types (extensions):
         */
        int size = description.getInputFormats().size();
        Assert.assertTrue(
                "Service description contains less input formats than it should: "
                        + size, size >= MetadataType.values().length);
    }
View Full Code Here

    /**
     * test the describe method
     */
    @Test
    public void testDescribe() {
        ServiceDescription desc = ids.describe();
        assertTrue("The ServiceDescription should not be NULL.", desc != null);
        System.out.println("Recieved service description: "
                + desc.toXmlFormatted());
    }
View Full Code Here

    /**
     * Test the Description method.
     */
    @Test
    public void testDescribe() {
        ServiceDescription desc = dom.describe();
        assertTrue("The ServiceDescription should not be NULL.", desc != null);
        System.out.println("Recieved service description: "
                + desc.toXmlFormatted());
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.services.datatypes.ServiceDescription$Builder

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.