Skip to content

Commit

Permalink
Merge branch 'tinwelint-1.9-TestBrokenStoreRecovery-efsa' into 1.9-maint
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalstain committed Mar 28, 2015
2 parents c2b1fb0 + 06eabec commit 417a591
Show file tree
Hide file tree
Showing 229 changed files with 365 additions and 521 deletions.
2 changes: 1 addition & 1 deletion advanced/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2012 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as “Neo Technology”)
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion advanced/management/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion advanced/neo4j-advanced/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion advanced/server-advanced/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion advanced/server-advanced/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2002-2014 "Neo Technology,"
Copyright (c) 2002-2015 "Neo Technology,"
Network Engine for Objects in Lund AB [http://neotechnology.com]
This file is part of Neo4j.
Expand Down
2 changes: 1 addition & 1 deletion community/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2012 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as “Neo Technology”)
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion community/cypher/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
Expand Up @@ -19,26 +19,6 @@
*/
package org.neo4j.cypher.internal.executionplan.builders

/**
* Copyright (c) 2002-2014 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import org.neo4j.cypher.internal.commands.Predicate
import org.neo4j.cypher.internal.pipes.{FilterPipe, Pipe}
import org.neo4j.cypher.internal.executionplan.{ExecutionPlanInProgress, PlanBuilder}
Expand Down
Expand Up @@ -17,44 +17,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
///**
//* Copyright (c) 2002-2014 "Neo Technology,"
//* Network Engine for Objects in Lund AB [http://neotechnology.com]
//*
//* This file is part of Neo4j.
//*
//* Neo4j is free software: you can redistribute it and/or modify
//* it under the terms of the GNU General Public License as published by
//* the Free Software Foundation, either version 3 of the License, or
//* (at your option) any later version.
//*
//* This program is distributed in the hope that it will be useful,
//* but WITHOUT ANY WARRANTY; without even the implied warranty of
//* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//* GNU General Public License for more details.
//*
//* You should have received a copy of the GNU General Public License
//* along with this program. If not, see <http://www.gnu.org/licenses/>.
//*/
///**
//* Copyright (c) 2002-2014 "Neo Technology,"
//* Network Engine for Objects in Lund AB [http://neotechnology.com]
//*
//* This file is part of Neo4j.
//*
//* Neo4j is free software: you can redistribute it and/or modify
//* it under the terms of the GNU General Public License as published by
//* the Free Software Foundation, either version 3 of the License, or
//* (at your option) any later version.
//*
//* This program is distributed in the hope that it will be useful,
//* but WITHOUT ANY WARRANTY; without even the implied warranty of
//* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//* GNU General Public License for more details.
//*
//* You should have received a copy of the GNU General Public License
//* along with this program. If not, see <http://www.gnu.org/licenses/>.
//*/
//package org.neo4j.cypher.internal.spi;
//
//import static org.hamcrest.CoreMatchers.is;
Expand Down
Expand Up @@ -17,25 +17,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
///**
// * Copyright (c) 2002-2014 "Neo Technology,"
// * Network Engine for Objects in Lund AB [http://neotechnology.com]
// *
// * This file is part of Neo4j.
// *
// * Neo4j is free software: you can redistribute it and/or modify
// * it under the terms of the GNU General Public License as published by
// * the Free Software Foundation, either version 3 of the License, or
// * (at your option) any later version.
// *
// * This program is distributed in the hope that it will be useful,
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// *
// * You should have received a copy of the GNU General Public License
// * along with this program. If not, see <http://www.gnu.org/licenses/>.
// */
//package org.neo4j.cypher.internal.spi.gdsimpl;
//
//import org.junit.After;
Expand Down
Expand Up @@ -19,26 +19,6 @@
*/
package org.neo4j.cypher.internal.executionplan.builders

/**
* Copyright (c) 2002-2014 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import org.junit.Test
import org.junit.Assert._
import org.neo4j.cypher.internal.executionplan.PartiallySolvedQuery
Expand Down
Expand Up @@ -19,26 +19,6 @@
*/
package org.neo4j.cypher.internal.executionplan.builders

/**
* Copyright (c) 2002-2014 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import org.junit.Test
import org.junit.Assert._
import org.neo4j.cypher.internal.executionplan.{ExecutionPlanInProgress, PartiallySolvedQuery}
Expand Down
Expand Up @@ -19,26 +19,6 @@
*/
package org.neo4j.cypher.internal.executionplan.builders

/**
* Copyright (c) 2002-2014 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import org.scalatest.Assertions
import org.junit.Assert._
import org.neo4j.cypher.internal.pipes.NullPipe
Expand Down
Expand Up @@ -19,26 +19,6 @@
*/
package org.neo4j.cypher.internal.executionplan.builders

/**
* Copyright (c) 2002-2014 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import org.junit.Test
import org.junit.Assert._
import org.neo4j.cypher.internal.executionplan.PartiallySolvedQuery
Expand Down
2 changes: 1 addition & 1 deletion community/embedded-examples/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion community/graph-algo/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion community/graph-matching/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion community/graphviz/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion community/jmx/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion community/kernel/NOTICE.txt
@@ -1,5 +1,5 @@
Neo4j
Copyright © 2002-2014 Network Engine for Objects in Lund AB (referred to
Copyright © 2002-2015 Network Engine for Objects in Lund AB (referred to
in this notice as "Neo Technology")
[http://neotechnology.com]

Expand Down
2 changes: 1 addition & 1 deletion community/kernel/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2002-2014 "Neo Technology,"
Copyright (c) 2002-2015 "Neo Technology,"
Network Engine for Objects in Lund AB [http://neotechnology.com]
This file is part of Neo4j.
Expand Down
Expand Up @@ -17,25 +17,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* Copyright (c) 2002-2011 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.kernel;

import static java.util.Arrays.asList;
Expand Down
Expand Up @@ -166,7 +166,8 @@ private void assertIdWithinCapacity( long id )
{
if ( id > max || id < 0 )
{
throw new UnderlyingStorageException( "Id capacity exceeded" );
throw new UnderlyingStorageException(
"Id capacity exceeded: " + id + " is not within bounds [0; " + max + "] for " + fileName );
}
}

Expand Down
Expand Up @@ -19,10 +19,6 @@
*/
package org.neo4j.kernel.impl.nioneo.store;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
Expand All @@ -31,6 +27,10 @@
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

import org.neo4j.graphdb.DynamicRelationshipType;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
Expand All @@ -55,7 +55,9 @@
import org.neo4j.test.subprocess.SubProcessTestRunner;
import org.neo4j.tooling.GlobalGraphOperations;

import static org.hamcrest.Matchers.startsWith;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;

@RunWith(Suite.class)
Expand Down Expand Up @@ -125,7 +127,7 @@ private void performTest() throws Exception
}
catch ( UnderlyingStorageException expected )
{
assertEquals( "Id capacity exceeded", expected.getMessage() );
assertThat( expected.getMessage(), startsWith( "Id capacity exceeded" ) );
}
finally
{
Expand Down

0 comments on commit 417a591

Please sign in to comment.