Search in sources :

Example 36 with Before

use of org.junit.Before in project camel by apache.

the class BatchGetItemsCommandTest method setUp.

@Before
public void setUp() {
    ddbClient = new AmazonDDBClientMock();
    configuration = new DdbConfiguration();
    exchange = new DefaultExchange(new DefaultCamelContext());
    command = new BatchGetItemsCommand(ddbClient, configuration, exchange);
}
Also used : DefaultExchange(org.apache.camel.impl.DefaultExchange) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Example 37 with Before

use of org.junit.Before in project camel by apache.

the class DescribeTableCommandTest method setUp.

@Before
public void setUp() {
    ddbClient = new AmazonDDBClientMock();
    configuration = new DdbConfiguration();
    configuration.setTableName("FULL_DESCRIBE_TABLE");
    exchange = new DefaultExchange(new DefaultCamelContext());
    command = new DescribeTableCommand(ddbClient, configuration, exchange);
}
Also used : DefaultExchange(org.apache.camel.impl.DefaultExchange) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Example 38 with Before

use of org.junit.Before in project camel by apache.

the class DdbStreamEndpointTest method setup.

@Before
public void setup() throws Exception {
    SimpleRegistry registry = new SimpleRegistry();
    registry.put("someSeqNumProv", sequenceNumberProvider);
    registry.put("ddbStreamsClient", amazonDynamoDBStreams);
    context = new DefaultCamelContext(registry);
}
Also used : SimpleRegistry(org.apache.camel.impl.SimpleRegistry) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Example 39 with Before

use of org.junit.Before in project camel by apache.

the class GetItemCommandTest method setUp.

@Before
public void setUp() {
    ddbClient = new AmazonDDBClientMock();
    configuration = new DdbConfiguration();
    configuration.setTableName("DOMAIN1");
    exchange = new DefaultExchange(new DefaultCamelContext());
    command = new GetItemCommand(ddbClient, configuration, exchange);
}
Also used : DefaultExchange(org.apache.camel.impl.DefaultExchange) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Example 40 with Before

use of org.junit.Before in project camel by apache.

the class PutItemCommandTest method setUp.

@Before
public void setUp() {
    ddbClient = new AmazonDDBClientMock();
    configuration = new DdbConfiguration();
    configuration.setTableName("DOMAIN1");
    exchange = new DefaultExchange(new DefaultCamelContext());
    command = new PutItemCommand(ddbClient, configuration, exchange);
}
Also used : DefaultExchange(org.apache.camel.impl.DefaultExchange) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)8594 File (java.io.File)733 Properties (java.util.Properties)270 Configuration (org.apache.hadoop.conf.Configuration)266 TreeMap (java.util.TreeMap)247 ArrayList (java.util.ArrayList)228 HashMap (java.util.HashMap)162 IOException (java.io.IOException)159 URL (java.net.URL)137 Path (org.apache.hadoop.fs.Path)130 Config (com.hazelcast.config.Config)115 HazelcastInstance (com.hazelcast.core.HazelcastInstance)111 InputStream (java.io.InputStream)109 Date (java.util.Date)96 InvocationOnMock (org.mockito.invocation.InvocationOnMock)96 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)92 YarnConfiguration (org.apache.hadoop.yarn.conf.YarnConfiguration)90 ByteArrayOutputStream (java.io.ByteArrayOutputStream)83 Connection (java.sql.Connection)78 Random (java.util.Random)75