Package net.stinfoservices.pacifiq.server.model

Examples of net.stinfoservices.pacifiq.server.model.Consumption


    @Test
    @DatabaseSetup(value = UPDATE_DATASET)
    @ExpectedDatabase(value = EMPTY_DATASET, assertionMode = DatabaseAssertionMode.NON_STRICT)
    @DatabaseTearDown(value = EMPTY_DATASET, type = DatabaseOperation.DELETE)
    public void testRemove2() throws Exception {
        Consumption consumption = new Consumption();
        Program program = new Program();
        Item item = new Item();
        DSP5 dsp5 = new DSP5();

        consumption.setId(1L);
        consumption.setQuantity(5);
        program.setId(1L);
        program.setName(PROGRAM_NAME);
        program.setVersion(1);
        consumption.setProgram(program);
        dsp5.setId(1L);
        dsp5.setLicenseNumber(DSP5_LICENSE_NUMBER);
        dsp5.setVersion(1);
        item.setId(1L);
        item.setQuantity(5);
        item.setDsp5(dsp5);
        item.setVersion(1);
        consumption.setItem(item);
        consumption.setVersion(2);
        consumptionDAO.remove(consumption);
    }
View Full Code Here


        if ((ids != null) && (ids.length > 0)) {
            for (String id : ids) {
                try {
                    if ("Consumption".equals(type)) {
                        Consumption consumpt = consumptionDAO.find(Long.parseLong(id));
                        list.add(consumpt);
                    } else if ("DSP5".equals(type)) {
                        DSP5 dsp5 = dsp5DAO.find(Long.parseLong(id));
                        // DSP5 dsp5 = DSP5.findDSP5(Long.parseLong(id));
                        list.add(dsp5);
View Full Code Here

TOP

Related Classes of net.stinfoservices.pacifiq.server.model.Consumption

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.