Skip to content

Commit

Permalink
Cleaned up loading of auth procedures
Browse files Browse the repository at this point in the history
Fixed naming of class and test
  • Loading branch information
OliviaYtterbrink committed Jul 8, 2016
1 parent 6aedb85 commit 4e373fc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 40 deletions.
Expand Up @@ -190,7 +190,7 @@ public void failWhenCallingListProceduresInDbmsMode() throws Throwable
}

@Test
public void failWhenCallingNonExistingProcedures() throws Throwable
public void failWhenCallingNonExistentProcedures() throws Throwable
{
try
{
Expand Down
Expand Up @@ -29,7 +29,7 @@

import static org.neo4j.procedure.Procedure.Mode.DBMS;

public class UserProcedures
public class AuthProcedures
{
@Context
public AuthSubject authSubject;
Expand Down
Expand Up @@ -37,7 +37,7 @@ public void registerProcedures( Procedures procedures )
{
try
{
procedures.register( UserProcedures.class );
procedures.register( AuthProcedures.class );
}
catch ( KernelException e )
{
Expand Down
Expand Up @@ -47,14 +47,4 @@ protected ConstraintSemantics createSchemaRuleVerifier()
{
return new EnterpriseConstraintSemantics();
}

@Override
public void registerProcedures( Procedures procedures )
{
super.registerProcedures( procedures );
for ( EnterpriseProceduresProvider candidate : Service.load( EnterpriseProceduresProvider.class ) )
{
candidate.registerProcedures( procedures );
}
}
}

This file was deleted.

0 comments on commit 4e373fc

Please sign in to comment.