@@ -0,0 +1,2507 @@
+/**%0A * Copyright 2011 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.springframework.data.graph.neo4j.rest.integration;%0A%0Aimport org.junit.AfterClass;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0Aimport org.neo4j.graphdb.GraphDatabaseService;%0Aimport org.springframework.dao.DataAccessException;%0Aimport org.springframework.data.graph.core.GraphDatabase;%0Aimport org.springframework.data.graph.neo4j.config.NullTransactionManager;%0Aimport org.springframework.data.graph.neo4j.rest.support.RestTestHelper;%0Aimport org.springframework.data.graph.neo4j.template.Neo4jTemplateApiTest;%0Aimport org.springframework.transaction.PlatformTransactionManager;%0Aimport org.springframework.transaction.jta.JtaTransactionManager;%0A%0Aimport java.io.IOException;%0A%0Apublic class RestNeo4jTemplateApiTest extends Neo4jTemplateApiTest%0A%7B%0A    private static RestTestHelper testHelper;%0A%0A    @BeforeClass%0A    public static void startServer() throws Exception%0A    %7B%0A        testHelper = new RestTestHelper();%0A        testHelper.startServer();%0A    %7D%0A%0A    @Test%0A    @Ignore%0A    public void shouldRollbackTransactionOnException() %7B%7D%0A%0A    @Test%0A    @Ignore%0A    public void shouldRollbackViaStatus() throws Exception %7B%7D%0A%0A    @Test(expected = DataAccessException.class)%0A    @Ignore%0A    public void shouldConvertMissingTransactionExceptionToDataAccessException() %7B%7D%0A%0A%0A    @AfterClass%0A    public static void stopServer() throws Exception%0A    %7B%0A        testHelper.shutdownServer();%0A    %7D%0A%0A    @Override%0A    protected PlatformTransactionManager createTransactionManager()%0A    %7B%0A        return new JtaTransactionManager(new NullTransactionManager());%0A    %7D%0A%0A    @Override%0A    protected GraphDatabase createGraphDatabase() throws Exception%0A    %7B%0A        testHelper.cleanDb();%0A        return testHelper.createGraphDatabase();%0A    %7D%0A%0A    @Override%0A    protected GraphDatabaseService createGraphDatabaseService() throws IOException %7B%0A        return null;%0A    %7D%0A%7D%0A

Test for RestTemplateAPI