Elffuss BraidHub

kikocis/java-driver public

540a80c493be · 1.9 KiBRawPermalink
1/*
2 * Copyright (C) 2012-2015 DataStax Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package com.datastax.driver.osgi;
17
18import com.datastax.driver.osgi.api.MailboxException;
19import org.ops4j.pax.exam.Configuration;
20import org.ops4j.pax.exam.Option;
21import org.ops4j.pax.exam.testng.listener.PaxExam;
22import org.testng.annotations.Listeners;
23import org.testng.annotations.Test;
24
25import static com.datastax.driver.osgi.BundleOptions.*;
26import static org.ops4j.pax.exam.CoreOptions.options;
27
28@Listeners({CCMBridgeListener.class, PaxExam.class})
29public class MailboxServiceSnappyIT extends MailboxServiceTests {
30
31 @Configuration
32 public Option[] snappyConfig() {
33 return options(
34 defaultOptions(),
35 snappyBundle(),
36 nettyBundles(),
37 guavaBundle(),
38 extrasBundle(),
39 mappingBundle(),
40 driverBundle(),
41 mailboxBundle()
42 );
43 }
44
45 /**
46 * Exercises a 'mailbox' service provided by an OSGi bundle that depends on the driver with
47 * LZ4 compression activated.
48 *
49 * @test_category packaging
50 * @expected_result Can create, retrieve and delete data using the mailbox service.
51 * @jira_ticket JAVA-1200
52 * @since 3.1.0
53 */
54 @Test(groups = "short")
55 public void test_snappy() throws MailboxException {
56 checkService();
57 }
58}