# ignite-140 : SpatialIndexInitiatorTest was added
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e6c21ab9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e6c21ab9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e6c21ab9 Branch: refs/heads/ignite-6 Commit: e6c21ab936349746e70097bc9afe4024d152d9e5 Parents: c4e1c4f Author: Artem SHutak <ashu...@gridgain.com> Authored: Fri Jan 30 14:34:47 2015 +0300 Committer: Artem SHutak <ashu...@gridgain.com> Committed: Fri Jan 30 14:34:47 2015 +0300 ---------------------------------------------------------------------- .../query/h2/opt/SpatialIndexInitiatorTest.java | 36 ++++++++++++++++++++ 1 file changed, 36 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e6c21ab9/modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/h2/opt/SpatialIndexInitiatorTest.java ---------------------------------------------------------------------- diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/h2/opt/SpatialIndexInitiatorTest.java b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/h2/opt/SpatialIndexInitiatorTest.java new file mode 100644 index 0000000..dcb26b0 --- /dev/null +++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/h2/opt/SpatialIndexInitiatorTest.java @@ -0,0 +1,36 @@ +/* + * 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.query.h2.opt; + +import junit.framework.TestCase; +import org.h2.index.*; +import org.h2.table.*; + +/** + * Test {@link org.apache.ignite.internal.processors.query.h2.opt.SpatialIndexInitiator} + */ +public class SpatialIndexInitiatorTest extends TestCase { + /** + * @throws Exception If failed. + */ + public void testH2SpatialIndexCreation() throws Exception { + SpatialIndex h2SpatialIndex = SpatialIndexInitiator.createH2SpatialIndex(null, "", new IndexColumn[0], 0, 1); + + assertNotNull(h2SpatialIndex); + } +}