/*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.utils.test;
import static org.hibernate.ogm.utils.GridDialectType.HASHMAP;
import static org.hibernate.ogm.utils.GridDialectType.INFINISPAN;
import static org.hibernate.ogm.utils.GridDialectType.MONGODB;
import static org.hibernate.ogm.utils.GridDialectType.NEO4J_EMBEDDED;
import static org.hibernate.ogm.utils.GridDialectType.NEO4J_REMOTE;
import static org.junit.Assert.fail;
import org.hibernate.ogm.backendtck.simpleentity.Hypothesis;
import org.hibernate.ogm.utils.OgmTestCase;
import org.hibernate.ogm.utils.SkipByGridDialect;
import org.junit.Test;
/**
* Verifies that SkipByGridDialect is applied by the
*
* @author Sanne Grinovero <sanne@hibernate.org> (C) 2012 Red Hat Inc.
*/
public class SkipByGridDialectSelfTest extends OgmTestCase {
@Test
@SkipByGridDialect({ HASHMAP, INFINISPAN, MONGODB, NEO4J_EMBEDDED, NEO4J_REMOTE })
public void testWhichAlwaysFails() {
fail( "This should never be executed" );
}
@Test
public void testCorrect() {
// all fine
}
@Override
protected Class<?>[] getAnnotatedClasses() {
return new Class<?>[]{ Hypothesis.class };
}
}