Unnamed: 0 int64 0 6.7k | func stringlengths 12 89.6k | target bool 2
classes | project stringlengths 45 151 |
|---|---|---|---|
2,100 | public class GenerateConfigDocumentation
{
public static void main( String[] args ) throws Exception
{
File output = null;
String bundleName = null;
if(args.length > 0)
{
bundleName = args[0];
if(args.length > 1)
{
output = new File(args[... | false | community_kernel_src_main_java_org_neo4j_tooling_GenerateConfigDocumentation.java |
2,101 | public class InputStreamAwaiter
{
private final InputStream input;
private final byte[] bytes = new byte[1024];
private final Clock clock;
private static final String NEW_LINE = System.getProperty( "line.separator" );
public InputStreamAwaiter( InputStream input )
{
this( Clock.SYSTEM_C... | false | community_kernel_src_test_java_org_neo4j_test_InputStreamAwaiter.java |
2,102 | public class ImpermanentDatabaseRule extends DatabaseRule
{
private Logging logging;
public ImpermanentDatabaseRule()
{
}
public ImpermanentDatabaseRule( Logging logging )
{
this.logging = logging;
}
@Override
protected GraphDatabaseFactory newFactory()
{
retu... | false | community_kernel_src_test_java_org_neo4j_test_ImpermanentDatabaseRule.java |
2,103 | public class GraphTransactionRule
extends ExternalResource
{
private final DatabaseRule database;
private Transaction tx;
public GraphTransactionRule( DatabaseRule database )
{
this.database = database;
}
@Override
protected void before()
throws Throwable
{
... | false | community_kernel_src_test_java_org_neo4j_test_GraphTransactionRule.java |
2,104 | ERROR{
}; | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,105 | BOOLEAN
{
@Override
Boolean convert( String value )
{
return Boolean.parseBoolean( value );
}
@Override Class<?> componentClass()
{
return Boolean.class;
}
}, | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,106 | DOUBLE
{
@Override
Double convert( String value )
{
return Double.parseDouble( value );
}
@Override Class<?> componentClass()
{
return Double.class;
}
}, | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,107 | INTEGER
{
@Override
Long convert( String value )
{
return Long.parseLong( value );
}
@Override Class<?> componentClass()
{
return Long.class;
}
}, | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,108 | STRING
{
@Override
String convert( String value )
{
return value;
}
@Override Class<?> componentClass()
{
return String.class;
}
}, | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,109 | ARRAY
{
@Override Object convert( PropType componentType, String value )
{
String[] items = value.split( " *, *" );
Object[] result = (Object[]) Array.newInstance( componentType.componentClass(), items.length );
for ( int i =0 ; i ... | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,110 | private static class NodeWithAddedLabels implements NODE
{
private final LABEL[] labels;
private final NODE inner;
NodeWithAddedLabels( NODE inner, String[] labelNames )
{
this.inner = inner;
labels = new LABEL[labelNames.length];
for(int i=0;... | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,111 | private static class DefaultRel extends Default implements REL
{
private final String start, type, end;
DefaultRel( String start, String type, String end )
{
super( null );
this.type = type;
this.start = defined( start );
this.end = define... | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,112 | private static class DefaultNode extends Default implements NODE
{
private final LABEL[] labels;
DefaultNode( String name, String[] labelNames )
{
super( name );
labels = new LABEL[labelNames.length];
for(int i=0;i<labelNames.length;i++)
{... | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,113 | private static class DefaultLabel implements LABEL
{
private final String name;
public DefaultLabel( String name )
{
this.name = name;
}
@Override
public Class<? extends Annotation> annotationType()
{
throw new UnsupportedOperat... | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,114 | private static class Default
{
private final String name;
Default( String name )
{
this.name = "".equals( name ) ? null : name;
}
public String name()
{
return name;
}
public Class<? extends Annotation> annotationType()
... | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,115 | {
@Override
public Map<String, Node> create( GraphDatabaseService graphdb )
{
// don't bother with creating a transaction
return new HashMap<String, Node>();
}
}; | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,116 | {
@Override
public Map<String, Node> create( GraphDefinition graph, String title, String documentation )
{
return graph.create( holder.graphdb() );
}
@Override
public void destroy( Map<String, Node> product, boolean success... | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,117 | public class GraphDescription implements GraphDefinition
{
@Inherited
@Target( { ElementType.METHOD, ElementType.TYPE } )
@Retention( RetentionPolicy.RUNTIME )
public @interface Graph
{
String[] value() default {};
NODE[] nodes() default {};
REL[] relationships() default {}... | false | community_kernel_src_test_java_org_neo4j_test_GraphDescription.java |
2,118 | public class GraphDatabaseServiceCleaner
{
private GraphDatabaseServiceCleaner()
{
throw new UnsupportedOperationException();
}
public static void cleanDatabaseContent( GraphDatabaseService db )
{
try ( Transaction tx = db.beginTx() )
{
for ( ConstraintDefinition... | false | community_kernel_src_test_java_org_neo4j_test_GraphDatabaseServiceCleaner.java |
2,119 | {
@Override
public void evaluate() throws Throwable
{
try
{
base.evaluate();
}
catch ( Throwable failure )
{
printOutput();
throw failur... | false | community_kernel_src_test_java_org_neo4j_test_FailureOutput.java |
2,120 | public class FailureOutput implements TestRule
{
private final ByteArrayOutputStream output = new ByteArrayOutputStream();
private final PrintStream stream = new PrintStream( output );
private final PrintStream target;
public FailureOutput()
{
this( System.out );
}
public FailureOu... | false | community_kernel_src_test_java_org_neo4j_test_FailureOutput.java |
2,121 | public class ImpermanentGraphDatabase extends EmbeddedGraphDatabase
{
/**
* If enabled will track unclosed database instances in tests. The place of instantiation
* will get printed in an exception with the message "Unclosed database instance".
*/
private static boolean TRACK_UNCLOSED_DATABASE_IN... | false | community_kernel_src_test_java_org_neo4j_test_ImpermanentGraphDatabase.java |
2,122 | public class InputStreamAwaiterTest
{
@Test
public void shouldWaitForALineWithoutBlocking() throws Exception
{
// given
ArtificialClock clock = new ArtificialClock();
InputStream inputStream = spy( new MockInputStream( clock.progressor( 5, TimeUnit.MILLISECONDS ),
... | false | community_kernel_src_test_java_org_neo4j_test_InputStreamAwaiterTest.java |
2,123 | {
@Override
public Voice mute()
{
final Logger logger = LogManager.getLogManager().getLogger( "" );
final Level level = logger.getLevel();
final Handler[] handlers = logger.getHandlers();
for ( Handler handler : ... | false | community_kernel_src_test_java_org_neo4j_test_Mute.java |
2,124 | private static class MockInputStream extends InputStream
{
private final byte[][] chunks;
private final ArtificialClock.Progressor progressor;
private int chunk = 0;
MockInputStream( ArtificialClock.Progressor progressor, String... chunks )
{
this.progressor ... | false | community_kernel_src_test_java_org_neo4j_test_InputStreamAwaiterTest.java |
2,125 | public final class Mute implements TestRule
{
public static Mute mute( Mutable... mutables )
{
return new Mute( mutables );
}
public static Mute muteAll()
{
return mute( System.out, System.err, java_util_logging );
}
public enum System implements Mutable
{
o... | false | community_kernel_src_test_java_org_neo4j_test_Mute.java |
2,126 | {
@Override
public void evaluate() throws Throwable
{
resource = createResource( dir );
try
{
base.evaluate();
}
finally
{
R waste = resourc... | false | enterprise_ha_src_test_java_org_neo4j_test_ManagedResource.java |
2,127 | public abstract class ManagedResource<R> implements TestRule
{
private R resource;
public final R getResource()
{
R result = this.resource;
if ( result == null )
{
throw new IllegalStateException( "Resource is not started." );
}
return result;
}
... | false | enterprise_ha_src_test_java_org_neo4j_test_ManagedResource.java |
2,128 | public class LoggerRule
extends ExternalResource
{
private Logger logger;
private String testName;
@Override
protected void before()
throws Throwable
{
logger.info( "Begin test:" + testName );
super.before();
}
@Override
protected void after()
{
... | false | community_kernel_src_test_java_org_neo4j_test_LoggerRule.java |
2,129 | public static class NonCleanLogCopy
{
private final FileBackup[] backups;
NonCleanLogCopy( FileBackup... backups )
{
this.backups = backups;
}
public void reinstate() throws IOException
{
for ( FileBackup backup : backups )
{
... | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,130 | public static abstract class LogHookAdapter<RECORD> implements LogHook<RECORD>
{
@Override
public void file( File file )
{ // Do nothing
}
@Override
public void done( File file )
{ // Do nothing
}
} | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,131 | private static class FileBackup
{
private final File file, backup;
private final FileSystemAbstraction fileSystem;
FileBackup( File file, File backup, FileSystemAbstraction fileSystem )
{
this.file = file;
this.backup = backup;
this.fileSystem... | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,132 | public static class CountingLogHook<RECORD> extends LogHookAdapter<RECORD>
{
private int count;
@Override
public boolean accept( RECORD item )
{
count++;
return true;
}
public int getCount()
{
return count;
}
... | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,133 | private static class ByteArray
{
private final byte[] bytes;
public ByteArray( byte[] bytes )
{
this.bytes = bytes;
}
@Override
public boolean equals( Object obj )
{
return Arrays.equals( bytes, ((ByteArray)obj).bytes );
}... | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,134 | {
@Override
public boolean accept( LogEntry item )
{
target.set( max( target.get(), item.getIdentifier() ) );
return true;
}
}; | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,135 | {
private int recordCount = 0;
@Override
public boolean accept( Pair<Byte, List<byte[]>> item )
{
System.out.println( stringifyTxLogType( item.first().byteValue() ) + ": " +
stringifyTxLogBody( item.other() ) );
recordCount++;
... | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,136 | {
private final Map<ByteArray,List<Xid>> xids = new HashMap<>();
@Override
public boolean accept( Pair<Byte, List<byte[]>> item )
{
if ( item.first().byteValue() == TxLog.BRANCH_ADD )
{
ByteArray key = new ByteArray( item.other().get( 0 ) );
... | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,137 | {
@Override
public boolean accept( Pair<Byte, List<byte[]>> item )
{
return true;
}
}; | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,138 | {
@Override
public boolean accept( Pair<Byte, List<byte[]>> item )
{
return item.first().byteValue() != TxLog.TX_DONE;
}
}; | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,139 | public class LogTestUtils
{
public static interface LogHook<RECORD> extends Predicate<RECORD>
{
void file( File file );
void done( File file );
}
public static abstract class LogHookAdapter<RECORD> implements LogHook<RECORD>
{
@Override
public void file( File file )... | false | community_kernel_src_test_java_org_neo4j_test_LogTestUtils.java |
2,140 | {
@Override
public JavaTestDocsGenerator create( GraphDefinition graph,
String title, String documentation )
{
return (JavaTestDocsGenerator) new JavaTestDocsGenerator( title ).description( documentation );
}
@Override
public void destroy(... | false | community_kernel_src_test_java_org_neo4j_test_JavaTestDocsGenerator.java |
2,141 | public class JavaTestDocsGenerator extends AsciiDocGenerator
{
public static final Producer<JavaTestDocsGenerator> PRODUCER = new Producer<JavaTestDocsGenerator>()
{
@Override
public JavaTestDocsGenerator create( GraphDefinition graph,
String title, String documentation )
... | false | community_kernel_src_test_java_org_neo4j_test_JavaTestDocsGenerator.java |
2,142 | public class JavaDocsGenerator extends AsciiDocGenerator
{
private final static String DIRECTORY = "target" + File.separator + "docs";
public JavaDocsGenerator( String title, String section )
{
super( title, section );
}
public void saveToFile( String identifier, String text )
{
... | false | community_kernel_src_test_java_org_neo4j_test_JavaDocsGenerator.java |
2,143 | public class IterableMatcher<T> extends TypeSafeMatcher<Iterable<T>>
{
private final Iterable<T> toMatch;
private IterableMatcher( Iterable<T> toMatch )
{
this.toMatch = toMatch;
}
@Override
protected boolean matchesSafely( Iterable<T> objects )
{
if ( Iterables.count( toMa... | false | community_kernel_src_test_java_org_neo4j_test_IterableMatcher.java |
2,144 | {
@Override
public boolean accept( ManagedCluster cluster )
{
for ( HighlyAvailableGraphDatabase graphDatabaseService : cluster.getAllMembers() )
{
if ( !exceptSet.contains( graphDatabaseService ))
{
... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,145 | {
@Override
public boolean accept( ManagedCluster cluster )
{
ClusterMembers members = cluster.getMaster().getDependencyResolver().resolveDependency( ClusterMembers.class );
return Iterables.count(members.getMembers()) == count;
}
... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,146 | {
@Override
public boolean accept( ManagedCluster cluster )
{
if (!allSeesAllAsJoined().accept( cluster ))
return false;
for ( HighlyAvailableGraphDatabase database : cluster.getAllMembers() )
{
... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,147 | {
@Override
public void deadlock( DebuggedThread thread )
{
throw new DeadlockDetectedError();
}
}; | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,148 | static class DeadlockDetectedError extends Error
{
@Override
public Throwable fillInStackTrace()
{
return this;
}
} | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,149 | {
@Override
public void run()
{
killAll( handlers );
}
} ); | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,150 | @SuppressWarnings( "serial" )
public abstract class SubProcess<T, P> implements Serializable
{
private interface NoInterface
{
// Used when no interface is declared
}
private final Class<T> t;
private final transient Predicate<String> classPathFilter;
@SuppressWarnings( { "unchecked", ... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,151 | @SuppressWarnings( "serial" )
public final class KillSubProcess extends Exception
{
public static KillSubProcess withExitCode( int exitCode )
{
return new KillSubProcess( exitCode );
}
final int exitCode;
private KillSubProcess( int exitCode )
{
this.exitCode = exitCode;
}
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_KillSubProcess.java |
2,152 | {
@Override
public void deadlock( DebuggedThread thread )
{
thread.resume();
}
}; | false | community_kernel_src_test_java_org_neo4j_test_subprocess_DebuggerDeadlockCallback.java |
2,153 | public class DebuggedThread
{
private final com.sun.jdi.ThreadReference thread;
private final SubProcess.DebugDispatch debug;
DebuggedThread( SubProcess.DebugDispatch debug, com.sun.jdi.ThreadReference thread )
{
this.debug = debug;
this.thread = thread;
}
@Override
pub... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_DebuggedThread.java |
2,154 | @SuppressWarnings( "restriction" )
public class DebugInterface
{
private final com.sun.jdi.event.LocatableEvent event;
private final SubProcess.DebugDispatch debug;
DebugInterface( SubProcess.DebugDispatch debug, com.sun.jdi.event.LocatableEvent event )
{
this.debug = debug;
this.event ... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_DebugInterface.java |
2,155 | public class ConnectionDisruptedException extends IllegalStateException
{
public ConnectionDisruptedException( Throwable cause )
{
super( "Subprocess connection disrupted", cause );
}
} | false | community_kernel_src_test_java_org_neo4j_test_subprocess_ConnectionDisruptedException.java |
2,156 | {
private volatile int numberOfCalls;
@Override
protected void callback( DebugInterface debug ) throws KillSubProcess
{
if ( ++numberOfCalls <= letNumberOfCallsPass )
return;
if ( !stackTraceMustContain.accept(... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_BreakPoint.java |
2,157 | {
@Override
public boolean accept( StackTraceElement[] item )
{
for ( StackTraceElement element : item )
if ( element.getClassName().equals( cls.getName() ) )
return true;
return false;
}
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_BreakPoint.java |
2,158 | {
@Override
public boolean accept( StackTraceElement[] item )
{
return !predicate.accept( item );
}
}; | false | community_kernel_src_test_java_org_neo4j_test_subprocess_BreakPoint.java |
2,159 | {
@Override
public boolean accept( StackTraceElement[] item )
{
return true;
}
}; | false | community_kernel_src_test_java_org_neo4j_test_subprocess_BreakPoint.java |
2,160 | {
@Override
protected void callback( DebugInterface debug )
{
out.println( "Debugger stacktrace" );
debug.printStackTrace( out );
}
}; | false | community_kernel_src_test_java_org_neo4j_test_subprocess_BreakPoint.java |
2,161 | public abstract class BreakPoint implements DebuggerDeadlockCallback
{
public enum Event
{
ENTRY,
EXIT
}
public BreakPoint( Class<?> type, String method, Class<?>... args )
{
this(Event.ENTRY,type,method,args);
}
public BreakPoint( Event event, Class<?> type, String... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_BreakPoint.java |
2,162 | {
@Override
public void doWork()
{
deleteAllNodesAndRelationships( server );
deleteAllIndexes( server );
}
private void deleteAllNodesAndRelationships( final EnterpriseNeoServer server )
{
... | false | enterprise_server-enterprise_src_test_java_org_neo4j_test_server_ha_EnterpriseServerHelper.java |
2,163 | public class EnterpriseServerHelper
{
public static void cleanTheDatabase( final EnterpriseNeoServer server )
{
if ( server == null )
{
return;
}
new Transactor( server.getDatabase().getGraph(), new UnitOfWork()
{
@Override
public voi... | false | enterprise_server-enterprise_src_test_java_org_neo4j_test_server_ha_EnterpriseServerHelper.java |
2,164 | {
@Override
public Void call() throws Exception
{
ServerHolder.release( server );
return null;
}
} ); | false | community_server_src_test_java_org_neo4j_test_server_SharedServerTestBase.java |
2,165 | {
@Override
public Void call() throws Exception
{
server = ServerHolder.allocate();
serverUrl = server.baseUri().toString();
return null;
}
} ); | false | community_server_src_test_java_org_neo4j_test_server_SharedServerTestBase.java |
2,166 | public class SharedServerTestBase
{
private static boolean useExternal = Boolean.valueOf( System.getProperty( "neo-server.external", "false" ) );
private static String externalURL = System.getProperty( "neo-server.external.url", "http://localhost:7474" );
protected static NeoServer server()
{
r... | false | community_server_src_test_java_org_neo4j_test_server_SharedServerTestBase.java |
2,167 | @SuppressWarnings( "restriction" )
static class DebugDispatch implements Runnable
{
static DebugDispatch get( Object o )
{
if ( Proxy.isProxyClass( o.getClass() ) )
{
InvocationHandler handler = Proxy.getInvocationHandler( o );
if ( han... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,168 | @SuppressWarnings( "restriction" )
private static class DebuggerConnector
{
private static final com.sun.jdi.connect.ListeningConnector connector;
static
{
com.sun.jdi.connect.ListeningConnector first = null;
for ( com.sun.jdi.connect.ListeningConnector conn :... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,169 | {
@Override
public boolean accept( ManagedCluster cluster )
{
int nrOfMembers = cluster.size();
for ( HighlyAvailableGraphDatabase database : cluster.getAllMembers() )
{
ClusterMembers members = database.get... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,170 | private static class DispatcherImpl extends UnicastRemoteObject implements Dispatcher
{
private transient final SubProcess<?, ?> subprocess;
protected DispatcherImpl( SubProcess<?, ?> subprocess ) throws RemoteException
{
super();
this.subprocess = subprocess;
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,171 | public class SuspendedThreadsException extends Exception implements Iterable<String>
{
private final String[] threadNames;
SuspendedThreadsException( String... threadNames )
{
super( message( threadNames ) );
this.threadNames = threadNames.clone();
}
private static String message( ... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SuspendedThreadsException.java |
2,172 | private static class TestProcess extends SubProcess<TestRunnerDispatcher, RemoteRunNotifier> implements
TestRunnerDispatcher
{
private static final long serialVersionUID = 1L;
private final String className;
public TestProcess(String className)
{
this.cla... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,173 | public static class RunTerminatedException extends RuntimeException
{
private static final long serialVersionUID = 1L;
private RunTerminatedException()
{
// all instances are created here
}
} | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,174 | {
@Override
public void evaluate() throws Throwable
{
statement.evaluate();
host.checkPostConditions();
}
}; | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,175 | {
@Override
public void evaluate()
{
testProcess.runner = RemoteTestRunner.this;
for ( Object test = testMethod;; test = testMethod )
{
if ( test == null || test instanceof Thr... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,176 | private static class RemoteTestRunner extends BlockJUnit4ClassRunner
{
private final TestProcess testProcess;
private final RemoteRunNotifier host;
private volatile Object testMethod;
private volatile Object test;
RemoteTestRunner( TestProcess testProcess, RemoteRunNotif... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,177 | private static class RemoteRunListener extends RunListener
{
private final RemoteRunNotifier remote;
public RemoteRunListener( RemoteRunNotifier remote )
{
this.remote = remote;
}
@Override
public void testFailure( Failure failure ) throws Exception
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,178 | private class NotifierImpl extends UnicastRemoteObject implements RemoteRunNotifier
{
private static final long serialVersionUID = 1L;
private final EachTestNotifier notifier;
NotifierImpl( EachTestNotifier notifier ) throws RemoteException
{
super();
thi... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,179 | private class BreakpointDispatcher extends BreakPoint
{
private final FrameworkMethod handler;
BreakpointDispatcher( BreakPoint.Event event, Class<?> type, Method method, FrameworkMethod handler )
{
super( event, type, method.getName(), method.getParameterTypes() );
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,180 | {
@Override
public void evaluate() throws Throwable
{
enableBreakpoints( method.getAnnotation( EnabledBreakpoints.class ) );
dispatcher.run( method.getName() );
}
}; | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,181 | {
@Override
public void evaluate() throws Throwable
{
startSubProcess( notifier );
try
{
children.evaluate();
}
finally
{
stopSubProcess();
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,182 | {
@Override
public void run()
{
try
{
dispatcher.submit( task );
}
catch ( Throwable e )
{
e.printStackTrace();
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,183 | {
@Override
public void submit( final Task<?> task )
{
new Thread()
{
@Override
public void run()
{
try
{
dispatcher.submit( task );
}
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,184 | public class SubProcessTestRunner extends BlockJUnit4ClassRunner
{
public SubProcessTestRunner( Class<?> test ) throws InitializationError
{
super( test );
}
private final Map<String, BreakPoint> breakpoints = new HashMap<String, BreakPoint>();
private volatile TestRunnerDispatcher dispatch... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcessTestRunner.java |
2,185 | private static class PipeThread extends Thread
{
{
setName( getClass().getSimpleName() );
}
final CopyOnWriteArrayList<PipeTask> tasks = new CopyOnWriteArrayList<>();
@Override
public void run()
{
while ( true )
{
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,186 | private static class PipeTask
{
private final String prefix;
private final InputStream source;
private final PrintStream target;
private StringBuilder line;
PipeTask( String prefix, InputStream source, PrintStream target )
{
this.prefix = prefix;
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,187 | {
@Override
public void run()
{
latch.countDown();
try
{
dispatcher.stop();
}
catch ( RemoteException e )
{
... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,188 | private static class Handler implements InvocationHandler
{
private final Dispatcher dispatcher;
private final Process process;
private final Class<?> type;
private final String repr;
private final DebugDispatch debugDispatch;
Handler( Class<?> type, Dispatcher d... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,189 | private static class DispatcherTrapImpl extends UnicastRemoteObject implements DispatcherTrap
{
private final Object parameter;
private volatile Dispatcher dispatcher;
private final SubProcess<?, ?> process;
DispatcherTrapImpl( SubProcess<?, ?> process, Object parameter ) throws... | false | community_kernel_src_test_java_org_neo4j_test_subprocess_SubProcess.java |
2,190 | final class ServerHolder extends Thread
{
private static AssertionError allocation;
private static NeoServer server;
static synchronized NeoServer allocate() throws IOException
{
if ( allocation != null ) throw allocation;
if ( server == null ) server = startServer();
allocation... | false | community_server_src_test_java_org_neo4j_test_server_ServerHolder.java |
2,191 | public static class Response
{
private final ClientResponse response;
private final String entity;
public Response( ClientResponse response )
{
this.response = sanityCheck( response );
this.entity = response.getEntity( String.class );
}
p... | false | community_server_src_test_java_org_neo4j_test_server_HTTP.java |
2,192 | public static class RawPayload
{
private final String payload;
public static RawPayload rawPayload( String payload )
{
return new RawPayload( payload );
}
public static RawPayload quotedJson( String json )
{
return new RawPayload( json.re... | false | community_server_src_test_java_org_neo4j_test_server_HTTP.java |
2,193 | public static class Builder
{
private final Map<String, String> headers;
private final String baseUri;
private Builder()
{
this( Collections.<String, String>emptyMap(), "" );
}
private Builder( Map<String, String> headers, String baseUri )
{
... | false | community_server_src_test_java_org_neo4j_test_server_HTTP.java |
2,194 | public class EphemeralFileSystemAbstraction extends LifecycleAdapter implements FileSystemAbstraction
{
private final Set<File> directories = Collections.newSetFromMap( new ConcurrentHashMap<File, Boolean>() );
private final Map<File, EphemeralFileData> files;
public EphemeralFileSystemAbstraction()
{
... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,195 | public class ChannelOutputStream extends OutputStream
{
private final StoreChannel channel;
private final ByteBuffer buffer = ByteBuffer.allocateDirect( 8096 );
public ChannelOutputStream( StoreChannel channel, boolean append ) throws IOException
{
this.channel = channel;
if ( append )
... | false | community_kernel_src_test_java_org_neo4j_test_impl_ChannelOutputStream.java |
2,196 | public class ChannelInputStream extends InputStream
{
private final StoreChannel channel;
private final ByteBuffer buffer = ByteBuffer.allocateDirect( 8096 );
private int position;
public ChannelInputStream( StoreChannel channel )
{
this.channel = channel;
}
@Override
public in... | false | community_kernel_src_test_java_org_neo4j_test_impl_ChannelInputStream.java |
2,197 | public class ClusterTest
{
@Rule
public LoggerRule logging = new LoggerRule();
@Test
public void testCluster() throws Throwable
{
ClusterManager clusterManager = new ClusterManager( fromXml( getClass().getResource( "/threeinstances.xml" ).toURI() ),
TargetDirectory.forTest( ... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterTest.java |
2,198 | public class ClusterRule extends ExternalResource
{
private final Class<?> testClass;
private ClusterManager clusterManager;
private File storeDirectory;
private Description description;
public ClusterRule( Class<?> testClass )
{
this.testClass = testClass;
}
public ClusterMan... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterRule.java |
2,199 | private class StartNetworkAgainKit implements RepairKit
{
private final HighlyAvailableGraphDatabase db;
private final Iterable<Lifecycle> stoppedServices;
StartNetworkAgainKit( HighlyAvailableGraphDatabase db, Iterable<Lifecycle> stoppedServices )
{
this.db = db;
... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.