Examples of MetaDataRepository


Examples of org.fao.geonet.repository.MetadataRepository

      this.log = log;
    log.info("Retrieving metadata fragments for : " + params.name);
       
    //--- collect all existing metadata uuids before we update
        final MetadataRepository metadataRepository = context.getBean(MetadataRepository.class);
        localUuids = new UUIDMapper(metadataRepository, params.uuid);

    //--- parse the xml query from the string - TODO: default should be
    //--- get everything
    Element wfsQuery = null;
View Full Code Here

Examples of org.jboss.jca.core.spi.mdr.MetadataRepository

    @Test
    public void testMetadataConfiguration() throws Throwable {
        ServiceController<?> controller = serviceContainer.getService(ConnectorServices.IRONJACAMAR_MDR);
        assertNotNull(controller);
        MetadataRepository repository = (MetadataRepository) controller.getValue();
        assertNotNull(repository);
        Set<String> ids = repository.getResourceAdapters();

        assertNotNull(ids);
        assertEquals(1, ids.size());

        String piId = ids.iterator().next();
        assertNotNull(piId);
        assertNotNull(repository.getResourceAdapter(piId));
    }
View Full Code Here

Examples of org.jboss.jca.core.spi.mdr.MetadataRepository

    @Test
    public void testMetadataConfiguration() throws Throwable {
        ServiceController<?> controller = serviceContainer.getService(ConnectorServices.IRONJACAMAR_MDR);
        assertNotNull(controller);
        MetadataRepository repository = (MetadataRepository) controller.getValue();
        assertNotNull(repository);
        Set<String> ids = repository.getResourceAdapters();

        assertNotNull(ids);
        //assertEquals(1, ids.size());

        String piId = ids.iterator().next();
        assertNotNull(piId);
        assertNotNull(repository.getResourceAdapter(piId));
    }
View Full Code Here

Examples of org.jboss.metadata.spi.repository.MetaDataRepository

   }

   protected ScopeKey assertRetrievals(String name)
   {
      KernelControllerContext context = getControllerContext(name);
      MetaDataRepository repository = getMetaDataRepository().getMetaDataRepository();
      ScopeKey result = context.getScopeInfo().getScope();
      assertNotNull(repository.getMetaDataRetrieval(result));
      assertNotNull(repository.getMetaDataRetrieval(new ScopeKey(CommonLevels.INSTANCE, name)));
      return result;
   }
View Full Code Here

Examples of org.teiid.metadata.MetadataRepository

   
    static final String VDB = "metadata";
   
  @BeforeClass public static void setUp() throws Exception {
      FakeServer server = new FakeServer();
      MetadataRepository repo = Mockito.mock(MetadataRepository.class);
      server.setMetadataRepository(repo);
      Mockito.stub(repo.getViewDefinition(Mockito.anyString(), Mockito.anyInt(), (Table)Mockito.anyObject())).toAnswer(new Answer<String>() {
        @Override
        public String answer(InvocationOnMock invocation) throws Throwable {
          Table t = (Table)invocation.getArguments()[2];
          if (t.getName().equals("vw")) {
            return "select '2011'";
          }
          return null;
        }
    });
      Mockito.stub(repo.getProcedureDefinition(Mockito.anyString(), Mockito.anyInt(), (Procedure)Mockito.anyObject())).toAnswer(new Answer<String>() {
        @Override
        public String answer(InvocationOnMock invocation) throws Throwable {
          Procedure t = (Procedure)invocation.getArguments()[2];
          if (t.getName().equals("proc")) {
            return "create virtual procedure begin select '2011'; end";
          }
          return null;
        }
    });
      Mockito.stub(repo.getInsteadOfTriggerDefinition(Mockito.anyString(), Mockito.anyInt(), (Table)Mockito.anyObject(), (Table.TriggerEvent) Mockito.anyObject())).toAnswer(new Answer<String>() {
        @Override
        public String answer(InvocationOnMock invocation) throws Throwable {
        return "for each row select 1/0;";
        }
    });
      Mockito.stub(repo.isInsteadOfTriggerEnabled(Mockito.anyString(), Mockito.anyInt(), (Table)Mockito.anyObject(), (Table.TriggerEvent) Mockito.anyObject())).toAnswer(new Answer<Boolean>() {
        @Override
        public Boolean answer(InvocationOnMock invocation) throws Throwable {
        return Boolean.TRUE;
        }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.