Examples of Source


Examples of org.dozer.spring.vo.Source

  @Test
  public void testBeanMappingBuilder() throws Exception {
    DozerBeanMapper mapper = (DozerBeanMapper) context.getBean("factoryWithMappingBuilder", DozerBeanMapper.class);

    Source source = new Source();
    source.setName("John");
    source.setId(2L);
    Destination destination = mapper.map(source, Destination.class);
    assertEquals("John", destination.getValue());
    assertEquals(2L, destination.getId());
  }
View Full Code Here

Examples of org.dozer.vo.inheritance.hints.Source

    mapper = getMapper("inheritanceHints.xml");
  }

  @Test
  public void test_simple() {
    Source source = new Source();
    HashSet<Base> set = new HashSet<Base>();
    set.add(new BaseA());
    set.add(new BaseB());
    source.setSet(set);

    Target result = mapper.map(source, Target.class);

    assertNotNull(result);
    assertNotNull(result.getSet());
View Full Code Here

Examples of org.eclipse.bpel.model.Source

        if (result == null) result = caseWSDLElement(eventHandler);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.SOURCE: {
        Source source = (Source)theEObject;
        Object result = caseSource(source);
        if (result == null) result = caseExtensibleElement(source);
        if (result == null) result = caseExtensibleElement_1(source);
        if (result == null) result = caseWSDLElement(source);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

Examples of org.eclipse.jetty.servlet.BaseHolder.Source

     */
    public void addFilterMapping (FilterMapping mapping)
    {
        if (mapping != null)
        {
            Source source = (mapping.getFilterHolder()==null?null:mapping.getFilterHolder().getSource());
            FilterMapping[] mappings =getFilterMappings();
            if (mappings==null || mappings.length==0)
            {
                setFilterMappings(insertFilterMapping(mapping,0,false));
                if (source != null && source == Source.JAVAX_API)
View Full Code Here

Examples of org.eluder.coveralls.maven.plugin.domain.Source

    }

    @Override
    public Source load(final String sourceFile) throws IOException {
        for (SourceLoader sourceLoader : sourceLoaders) {
            Source source = sourceLoader.load(sourceFile);
            if (source != null) {
                return source;
            }
        }
        throw new IOException("No source found for " + sourceFile);
View Full Code Here

Examples of org.exist.source.Source

            abort("BrokerPool or XQueryResource or User was null!");
        }

        DBBroker broker = null;
        DocumentImpl resource = null;
        Source source = null;
        XQueryPool xqPool  = null;
        CompiledXQuery compiled = null;
        XQueryContext context = null;

        try {
View Full Code Here

Examples of org.exoplatform.application.gadget.Source

            return;
         }
         UIGadgetEditor uiEditor = uiManagement.getChild(UIGadgetEditor.class);
         if (uiEditor != null)
         {
            Source source = uiEditor.getSource();
            if (source != null && name.equals(uiEditor.getSourceName()))
            {
               UIApplication uiApp = ctx.getUIApplication();
               uiApp.addMessage(new ApplicationMessage("UIGadgetManagement.msg.deleteGadgetInUse", null));
               return;
View Full Code Here

Examples of org.fao.geonet.domain.Source

    params.uuid = UUID.randomUUID().toString();

    String id = settingMan.add("harvesting", "node", getType());

    storeNode(params, "id:"+id);
        Source source = new Source(params.uuid, params.name, true);
        context.getBean(SourceRepository.class).save(source);
        Resources.copyLogo(context, "images" + File.separator + "harvesting" + File.separator + params.icon, params.uuid);
       
    return id;
  }
View Full Code Here

Examples of org.folg.gedcom.model.Source

    assertEquals(gedcom.getSources().size(), 20);
  }

  @Test
  public void testToSourceDescription1() throws Exception {
    Source dqSource = gedcom.getSources().get(0);
    TestConversionResult result = new TestConversionResult();
    SourceDescriptionMapper mapper = new SourceDescriptionMapper();

    mapper.toSourceDescription(dqSource, result);
    assertNotNull(result.getSourceDescriptions());
View Full Code Here

Examples of org.gedcom4j.model.Source

    /**
     * Test when source has some bad values
     */
    public void testBadSource1() {
        Source src = new Source("bad xref");
        src.recIdNumber = new StringWithCustomTags("");
        AbstractValidator av = new SourceValidator(rootValidator, src);
        av.validate();
        assertFindingsContain(Severity.ERROR, "record id", "source", "blank");
        assertFindingsContain(Severity.ERROR, "xref", "source", "start", "at", "sign");
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.