Package org.fao.geonet.domain

Examples of org.fao.geonet.domain.StatusValue


    @Autowired
    StatusValueRepository _repo;

    @Test
    public void testFindOne() {
        StatusValue status = newStatusValue();
        status = _repo.save(status);

        StatusValue status1 = newStatusValue();
        status1 = _repo.save(status1);

        assertEquals(status1, _repo.findOne(status1.getId()));
        assertEquals(status, _repo.findOne(status.getId()));
    }
View Full Code Here


        assertEquals(status, _repo.findOne(status.getId()));
    }

    @Test
    public void testFindOneByName() {
        StatusValue status = newStatusValue();
        status = _repo.save(status);

        StatusValue status1 = newStatusValue();
        status1 = _repo.save(status1);

        assertEquals(status1, _repo.findOneByName(status1.getName()));
        assertEquals(status, _repo.findOneByName(status.getName()));
    }
View Full Code Here

    }

    public static StatusValue newStatusValue(AtomicInteger inc) {
        int val = inc.incrementAndGet();

        StatusValue statusValue = new StatusValue();
        statusValue.setName("name" + val);
        statusValue.setDisplayOrder(val);
        statusValue.setReserved(val % 2 == 0);

        return statusValue;
    }
View Full Code Here

TOP

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

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.