Examples of resolve()


Examples of org.locationtech.udig.catalog.tests.DummyService.resolve()

    @Test
    public void testResolve() throws Exception {
        DummyService service=new DummyService();
        assertTrue(service.canResolve(ResolvedTo.class));
        assertNotNull(service.resolve(ResolvedTo.class, new NullProgressMonitor()));
    }
}
View Full Code Here

Examples of org.locationtech.udig.project.internal.impl.LayerResource.resolve()

                }
               
            }, false);
            TestInterceptorPost.changeType=true;
            NullProgressMonitor nullProgressMonitor = new NullProgressMonitor();
            FeatureSource<SimpleFeatureType, SimpleFeature> resolve = resource.resolve(FeatureSource.class, nullProgressMonitor);
            assertNotNull(resolve);
        }finally{
            TestInterceptorPost.changeType=false;    
            resource.testingOnly_sort(null, false);
View Full Code Here

Examples of org.meb.speedway.util.TeamResolver.resolve()

        for (int i = 1; i < tokens.length; i += 2) {
          Integer year = Integer.valueOf(tokens[i].trim());
          String teamName = tokens[i + 1].trim();

          Team team = teamResolver.resolve(teamName);
          if (team != null) {
            TeamRiderHistory trh = new TeamRiderHistory();
            trh.setYear(year);
            trh.setRider(rider);
            trh.setTeam(team);
View Full Code Here

Examples of org.mule.api.registry.TransformerResolver.resolve()

    @Before
    public void setUp() throws Exception
    {
        TransformerResolver transformerResolver = mock(TransformerResolver.class);
        when(transformerResolver.resolve(DataTypeFactory.STRING, APPLE_DATA_TYPE)).thenReturn(stringToApple);
        when(transformerResolver.resolve(APPLE_DATA_TYPE, DataTypeFactory.STRING)).thenReturn(appleToString);

        muleRegistryHelper.registerObject("mockTransformerResolver", transformerResolver);

        muleRegistryHelper.registerObject("StringToAppleConverter", stringToApple);
View Full Code Here

Examples of org.netbeans.modules.nodejs.api.NodeJSUtils.resolve()

        NodeJSUtils utils = NodeJSUtils.getDefault();
        assertNotNull( utils );
        FileObject index = prj.getProjectDirectory().getFileObject( "index.js" );
        assertNotNull( index );
        FileObject other = utils.resolve( "./other", index );
        assertNotNull( other );
        assertEquals( "other.js", other.getNameExt() );
        assertEquals( index.getParent(), other.getParent() );

        FileObject http = utils.resolve( "http", index );
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOModelGroup.resolve()

    else {
      for (String modelPath : modelPaths) {
        modelGroup.loadModelFromURL(new File(modelPath).toURL());
      }
    }
    modelGroup.resolve(failures);
    modelGroup.verify(failures);
    EOModelGraffleGenerator g = new EOModelGraffleGenerator(false, modelGroup, templateFolder, outputFile);
    g.generate();
  }
}
View Full Code Here

Examples of org.objectweb.jorm.naming.api.PName.resolve()

    if (!(oid instanceof PName))
      throw new PersistenceException("Unmanaged object identifier: " + oid);
    PName pn = (PName) oid;
    String className = null;
    try {
      pn = pn.resolve(context);
      if (logger.isLoggable(BasicLevel.DEBUG)) {
        logger.log(BasicLevel.DEBUG, "newInstance(" + oid + "): pn.resolve=" + pn);
        logger.log(BasicLevel.DEBUG, "newInstance(" + oid + "): pn.type=" + pn.getPType());
      }
      PType type = pn.getPType();
View Full Code Here

Examples of org.olat.core.commons.modules.bc.vfs.OlatNamedContainerImpl.resolve()

                      + "</body></html>"; // Text = 'Dies ist der Test Text'
    String text = "Test HTML Seite fuer JUnit Test Dies ist der Test\u00A0Text";
    // Create a test HTML File 
    OlatRootFolderImpl rootFolder = new OlatRootFolderImpl(rootPath , null);
    OlatNamedContainerImpl namedFolder = new OlatNamedContainerImpl(filePath, rootFolder);
    VFSLeaf leaf = (VFSLeaf)namedFolder.resolve(htmlFileName);
    if (leaf != null) {
      leaf.delete();
    }
    leaf = namedFolder.createChildLeaf(htmlFileName);
    BufferedOutputStream bos = new BufferedOutputStream(leaf.getOutputStream(false));
View Full Code Here

Examples of org.olat.core.commons.modules.bc.vfs.OlatRootFolderImpl.resolve()

          if (getTempFolderFileList().contains(fileName)) {
            fileExists = true;
          }
          if (message.getKey() != null) {
            OlatRootFolderImpl msgContainer = fm.getMessageContainer(message.getForum().getKey(), message.getKey());
            if (msgContainer.resolve(fileName) != null) {
              fileExists = true;
            }
          }

          if (fileExists) {
View Full Code Here

Examples of org.olat.core.util.vfs.LocalFolderImpl.resolve()

    if (target.exists()) return false;
    List<VFSItem> vfsFiles = new ArrayList<VFSItem>();
    LocalFolderImpl vfsRoot = new LocalFolderImpl(root);
    for (Iterator<String> iter = files.iterator(); iter.hasNext();) {
      String fileName = iter.next();
      VFSItem item = vfsRoot.resolve(fileName);
      if (item == null) return false;
      vfsFiles.add(item);
    }
    return zip(vfsFiles, new LocalFileImpl(target));
  } // zip
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.