Skip to content

Commit

Permalink
[dbs-leipzig#1452] Add junit test category 'IntegrationTests'
Browse files Browse the repository at this point in the history
Adds a new interface 'IntegrationTests' to gradoop-accumulo.
This interface is used to categorize every test class in the
module. The category is excluded from surefire execution.
  • Loading branch information
Lucas Schons committed Nov 26, 2019
1 parent b676553 commit 2b59dbf
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 4 deletions.
1 change: 1 addition & 0 deletions gradoop-store/gradoop-accumulo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<includes>
<include>${accumuloTestSuite}</include>
</includes>
<excludedGroups>org.gradoop.storage.impl.accumulo.IntegrationTests</excludedGroups>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ public class AccumuloStoreTestBase extends GradoopFlinkTestBase {
* @param context loader context
* @throws Throwable if error
*/
protected void doTest(
String namespace,
SocialTestContext context
) throws Throwable {
protected void doTest(String namespace, SocialTestContext context) throws Throwable {
GradoopAccumuloConfig config = AccumuloTestSuite.getAcConfig(namespace);
AccumuloEPGMStore graphStore = new AccumuloEPGMStore(config);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright © 2014 - 2019 Leipzig University (Database Research Group)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradoop.storage.impl.accumulo;

public interface IntegrationTests {
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
import org.gradoop.storage.accumulo.impl.AccumuloEPGMStore;
import org.gradoop.storage.impl.accumulo.AccumuloStoreTestBase;
import org.gradoop.storage.impl.accumulo.AccumuloTestSuite;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.io.IOException;
Expand Down Expand Up @@ -89,6 +91,7 @@
* Accumulo graph store test
*/
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class StoreTest extends AccumuloStoreTestBase {

private static final String TEST01 = "basic_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
import org.gradoop.storage.accumulo.impl.io.AccumuloDataSink;
import org.gradoop.storage.accumulo.impl.io.AccumuloDataSource;
import org.gradoop.storage.impl.accumulo.AccumuloTestSuite;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.io.InputStream;
Expand All @@ -43,6 +45,7 @@
* accumulo data read write test
*/
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class IOBasicTest extends GradoopFlinkTestBase {

private static final String TEST_01 = "io_basic_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
import org.gradoop.storage.impl.accumulo.AccumuloStoreTestBase;
import org.gradoop.storage.accumulo.impl.io.AccumuloDataSource;
import org.gradoop.storage.accumulo.utils.AccumuloFilters;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.util.List;
Expand All @@ -32,6 +34,7 @@
import java.util.stream.Collectors;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class IOEdgePredicateTest extends AccumuloStoreTestBase {

private static final String TEST01 = "io_edge_predicate_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
import org.gradoop.storage.common.predicate.query.Query;
import org.gradoop.storage.impl.accumulo.AccumuloStoreTestBase;
import org.gradoop.storage.accumulo.impl.io.AccumuloDataSource;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.util.ArrayList;
Expand All @@ -35,6 +37,7 @@
import static org.gradoop.common.GradoopTestUtils.validateElementCollections;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class IOElementIdRangeTest extends AccumuloStoreTestBase {

private static final String TEST01 = "io_element_id_range_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@
import org.gradoop.storage.impl.accumulo.AccumuloStoreTestBase;
import org.gradoop.storage.accumulo.impl.io.AccumuloDataSource;
import org.gradoop.storage.accumulo.utils.AccumuloFilters;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class IOGraphPredicateTest extends AccumuloStoreTestBase {

private static final String TEST01 = "io_graph_predicate_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
import org.gradoop.storage.accumulo.impl.io.AccumuloDataSource;
import org.gradoop.storage.accumulo.impl.predicate.filter.api.AccumuloElementFilter;
import org.gradoop.storage.accumulo.utils.AccumuloFilters;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.util.List;
Expand All @@ -32,6 +34,7 @@
import static org.gradoop.common.GradoopTestUtils.validateElementCollections;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class IOVertexPredicateTest extends AccumuloStoreTestBase {

private static final String TEST01 = "io_vertex_predicate_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
import org.gradoop.storage.accumulo.impl.predicate.filter.calculate.Or;
import org.gradoop.storage.accumulo.utils.AccumuloFilters;
import org.gradoop.storage.common.predicate.query.Query;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.util.ArrayList;
Expand All @@ -41,6 +43,7 @@
* Accumulo graph store predicate test
*/
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class StoreBasicPredicateTest extends AccumuloStoreTestBase {

private static final String TEST01 = "basic_predicate_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
import org.gradoop.common.model.impl.id.GradoopIdSet;
import org.gradoop.common.model.impl.pojo.EPGMEdge;
import org.gradoop.storage.common.predicate.query.Query;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.util.ArrayList;
Expand All @@ -33,6 +35,7 @@
import static org.gradoop.common.GradoopTestUtils.validateElementCollections;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class StoreIdsPredicateTest extends AccumuloStoreTestBase {

private static final String TEST01 = "ids_predicate_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
import org.gradoop.storage.common.predicate.query.Query;
import org.gradoop.storage.impl.accumulo.AccumuloStoreTestBase;
import org.gradoop.storage.accumulo.utils.AccumuloFilters;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.util.List;
Expand All @@ -33,6 +35,7 @@
import static org.gradoop.common.GradoopTestUtils.validateElementCollections;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class StoreLabelPredicateTest extends AccumuloStoreTestBase {

private static final String TEST01 = "label_predicate_01";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
import org.gradoop.storage.common.predicate.query.Query;
import org.gradoop.storage.impl.accumulo.AccumuloStoreTestBase;
import org.gradoop.storage.accumulo.utils.AccumuloFilters;
import org.gradoop.storage.impl.accumulo.IntegrationTests;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runners.MethodSorters;

import java.util.List;
Expand All @@ -35,6 +37,7 @@
* accumulo graph store predicate test
*/
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@Category(IntegrationTests.class)
public class StorePropPredicateTest extends AccumuloStoreTestBase {

private static final String TEST01 = "prop_predicate_01";
Expand Down

0 comments on commit 2b59dbf

Please sign in to comment.