Package org.mule.module.db.integration.model

Examples of org.mule.module.db.integration.model.Field


        assertThat(counters[0], anyOf(equalTo(1), equalTo(Statement.SUCCESS_NO_INFO)));
        assertThat(counters[1], anyOf(equalTo(1), equalTo(Statement.SUCCESS_NO_INFO)));
        assertThat(counters[2], anyOf(equalTo(1), equalTo(Statement.SUCCESS_NO_INFO)));

        List<Map<String, String>> result = selectData("select * from PLANET order by ID", getDefaultDataSource());
        assertRecords(result, new Record(new Field("NAME", "Mercury"), new Field("POSITION", 2)), new Record(new Field("NAME", "Mercury"), new Field("POSITION", 3)), new Record(new Field("NAME", "Mercury"), new Field("POSITION", 4)));
    }
View Full Code Here


        MuleMessage response = client.send("vm://updateStoredProcedure", TEST_MESSAGE, null);

        int expectedUpdateCount = testDatabase instanceof DerbyTestDatabase ? 0 : 1;
        assertEquals(expectedUpdateCount, response.getPayload());
        List<Map<String, String>> result = selectData("select * from PLANET where POSITION=4", getDefaultDataSource());
        assertRecords(result, new Record(new Field("NAME", "Mercury"), new Field("POSITION", 4)));
    }
View Full Code Here

    }

    private void verifyUpdatedRecord() throws SQLException
    {
        List<Map<String, String>> result = selectData("select * from PLANET where POSITION=4", getDefaultDataSource());
        assertRecords(result, new Record(new Field("NAME", "Mercury"), new Field("POSITION", 4)));
    }
View Full Code Here

        InsensitiveMapRowHandler rowHandler = new InsensitiveMapRowHandler();

        Map<String, Object> record = rowHandler.process(build);

        TestRecordUtil.assertRecord(new Record(record), new Record(new Field(COLUMN_LABEL, COLUMN_VALUE)));
    }
View Full Code Here

            if (conditionBuilder.length() != 0)
            {
                conditionBuilder.append(",");
            }
            conditionBuilder.append("'").append(name).append("'");
            records.add(new Record(new Field("NAME", name)));
        }

        List<Map<String, String>> result = selectData(String.format("select * from PLANET where name in (%s)", conditionBuilder.toString()), getDefaultDataSource());

        assertRecords(result, records.toArray(new Record[0]));
View Full Code Here

        assertThat(response.getExceptionPayload(), is(nullValue()));

        assertThat((Integer) response.getPayload(), is(equalTo(1)));

        List<Map<String, String>> result = selectData("SELECT name FROM Alien", getDefaultDataSource());
        assertRecords(result, new Record(new Field("NAME", Alien.ET.getName())));
    }
View Full Code Here

        }
    }

    public static Record getMarsRecord()
    {
        return new Record(new Field("NAME", MARS.getName()));
    }
View Full Code Here

        return new Record(new Field("NAME", MARS.getName()));
    }

    public static Record getVenusRecord()
    {
        return new Record(new Field("NAME", VENUS.getName()));
    }
View Full Code Here

        return new Record(new Field("NAME", VENUS.getName()));
    }

    public static Record getEarthRecord()
    {
        return new Record(new Field("NAME", EARTH.getName()));
    }
View Full Code Here

        return new Record(new Field("NAME", EARTH.getName()));
    }

    public static Record getMonguitoRecord()
    {
        return new Record(new Field("NAME", Alien.MONGUITO.getName()), new XmlField("DESCRIPTION", Alien.MONGUITO.getXml()));
    }
View Full Code Here

TOP

Related Classes of org.mule.module.db.integration.model.Field

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.