Skip to content

Commit

Permalink
ignite-212 - p2p tests
Browse files Browse the repository at this point in the history
  • Loading branch information
S.Vladykin committed Feb 15, 2015
1 parent 3e0695c commit d78a84c
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 10 deletions.
Expand Up @@ -22,12 +22,12 @@
/**
* Tests for fields queries.
*/
public class GridCachePartitionedFieldsQueryP2PDisabledSelfTest extends GridCachePartitionedFieldsQuerySelfTest {
public class GridCachePartitionedFieldsQueryP2PEnabledSelfTest extends GridCachePartitionedFieldsQuerySelfTest {
/** {@inheritDoc} */
@Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception {
IgniteConfiguration c = super.getConfiguration(gridName);

c.setPeerClassLoadingEnabled(false);
c.setPeerClassLoadingEnabled(true);

return c;
}
Expand Down
Expand Up @@ -22,12 +22,12 @@
/**
* Tests for partitioned cache queries.
*/
public class GridCachePartitionedQueryP2PDisabledSelfTest extends GridCachePartitionedQuerySelfTest {
public class GridCachePartitionedQueryP2PEnabledSelfTest extends GridCachePartitionedQuerySelfTest {
/** {@inheritDoc} */
@Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception {
IgniteConfiguration c = super.getConfiguration(gridName);

c.setPeerClassLoadingEnabled(false);
c.setPeerClassLoadingEnabled(true);

return c;
}
Expand Down
@@ -0,0 +1,34 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.apache.ignite.internal.processors.cache.distributed.replicated;

import org.apache.ignite.configuration.*;

/**
* Tests for fields queries.
*/
public class GridCacheReplicatedFieldsQueryP2PEnableSelfTest extends GridCacheReplicatedFieldsQuerySelfTest {
/** {@inheritDoc} */
@Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception {
IgniteConfiguration c = super.getConfiguration(gridName);

c.setPeerClassLoadingEnabled(true);

return c;
}
}
Expand Up @@ -22,12 +22,12 @@
/**
* Tests replicated query.
*/
public class GridCacheReplicatedQueryP2PDisabledSelfTest extends GridCacheReplicatedQuerySelfTest {
public class GridCacheReplicatedQueryP2PEnabledSelfTest extends GridCacheReplicatedQuerySelfTest {
/** {@inheritDoc} */
@Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception {
IgniteConfiguration c = super.getConfiguration(gridName);

c.setPeerClassLoadingEnabled(false);
c.setPeerClassLoadingEnabled(true);

return c;
}
Expand Down
Expand Up @@ -48,11 +48,11 @@ public static TestSuite suite() throws Exception {
suite.addTestSuite(GridCacheLocalQuerySelfTest.class);
suite.addTestSuite(GridCacheLocalAtomicQuerySelfTest.class);
suite.addTestSuite(GridCacheReplicatedQuerySelfTest.class);
suite.addTestSuite(GridCacheReplicatedQueryP2PDisabledSelfTest.class);
suite.addTestSuite(GridCacheReplicatedQueryP2PEnabledSelfTest.class);
suite.addTestSuite(GridCachePartitionedQuerySelfTest.class);
suite.addTestSuite(GridCacheAtomicQuerySelfTest.class);
suite.addTestSuite(GridCacheAtomicNearEnabledQuerySelfTest.class);
suite.addTestSuite(GridCachePartitionedQueryP2PDisabledSelfTest.class);
suite.addTestSuite(GridCachePartitionedQueryP2PEnabledSelfTest.class);
suite.addTestSuite(GridCachePartitionedQueryMultiThreadedSelfTest.class);
suite.addTestSuite(GridCacheQueryIndexSelfTest.class);
suite.addTestSuite(GridCacheQueryInternalKeysSelfTest.class);
Expand All @@ -69,11 +69,11 @@ public static TestSuite suite() throws Exception {
// Fields queries.
suite.addTestSuite(GridCacheLocalFieldsQuerySelfTest.class);
suite.addTestSuite(GridCacheReplicatedFieldsQuerySelfTest.class);
suite.addTestSuite(GridCacheReplicatedFieldsQueryP2PDisabledSelfTest.class);
suite.addTestSuite(GridCacheReplicatedFieldsQueryP2PEnableSelfTest.class);
suite.addTestSuite(GridCachePartitionedFieldsQuerySelfTest.class);
suite.addTestSuite(GridCacheAtomicFieldsQuerySelfTest.class);
suite.addTestSuite(GridCacheAtomicNearEnabledFieldsQuerySelfTest.class);
suite.addTestSuite(GridCachePartitionedFieldsQueryP2PDisabledSelfTest.class);
suite.addTestSuite(GridCachePartitionedFieldsQueryP2PEnabledSelfTest.class);
suite.addTestSuite(GridCacheFieldsQueryNoDataSelfTest.class);

// Continuous queries.
Expand Down

0 comments on commit d78a84c

Please sign in to comment.