Package org.fao.geonet.domain

Examples of org.fao.geonet.domain.CustomElementSet


        }

        customElementSetRepository.deleteAll();

        for(String xpath : xpathList) {
            CustomElementSet customElementSet = new CustomElementSet();
            customElementSet.setXpath(xpath);

            customElementSetRepository.save(customElementSet);
        }
    }
View Full Code Here


    @Autowired
    CustomElementSetRepository _repo;

    @Test
    public void testFindOne() {
        CustomElementSet info1 = newCustomElementSet();
        info1 = _repo.save(info1);

        CustomElementSet info2 = newCustomElementSet();
        info2 = _repo.save(info2);

        CustomElementSet info = _repo.findOne(info1.getXpathHashcode());

        assertEquals(info1.getXpath(), info.getXpath());

        info = _repo.findOne(info2.getXpathHashcode());

        assertEquals(info2.getXpath(), info.getXpath());
    }
View Full Code Here

    private CustomElementSet newCustomElementSet() {
        return newCustomElementSet(_inc);
    }
    public static CustomElementSet newCustomElementSet(AtomicInteger inc) {
        int val = inc.incrementAndGet();
        CustomElementSet customElementSet = new CustomElementSet().setXpath("xpath" + val);
        return customElementSet;
    }
View Full Code Here

TOP

Related Classes of org.fao.geonet.domain.CustomElementSet

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.