org.apache.tinkerpop.gremlin.structure.util.star.StarGraphTest Java Examples

The following examples show how to use org.apache.tinkerpop.gremlin.structure.util.star.StarGraphTest. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TinkerGraphProvider.java    From tinkergraph-gremlin with Apache License 2.0 5 votes vote down vote up
/**
 * Determines if a test requires a different cardinality as the default or not.
 */
protected static boolean requiresListCardinalityAsDefault(final LoadGraphWith.GraphData loadGraphWith,
                                                        final Class<?> test, final String testMethodName) {
    return loadGraphWith == LoadGraphWith.GraphData.CREW
            || (test == StarGraphTest.class && testMethodName.equals("shouldAttachWithCreateMethod"))
            || (test == DetachedGraphTest.class && testMethodName.equals("testAttachableCreateMethod"));
}
 
Example #2
Source File: TinkerGraphProvider.java    From tinkerpop with Apache License 2.0 5 votes vote down vote up
/**
 * Determines if a test requires a different cardinality as the default or not.
 */
protected static boolean requiresListCardinalityAsDefault(final LoadGraphWith.GraphData loadGraphWith,
                                                        final Class<?> test, final String testMethodName) {
    return loadGraphWith == LoadGraphWith.GraphData.CREW
            || (test == StarGraphTest.class && testMethodName.equals("shouldAttachWithCreateMethod"))
            || (test == DetachedGraphTest.class && testMethodName.equals("testAttachableCreateMethod"));
}
 
Example #3
Source File: TinkerGraphProvider.java    From tinkerpop with Apache License 2.0 5 votes vote down vote up
/**
 * Determines if a test requires a different cardinality as the default or not.
 */
protected static boolean requiresListCardinalityAsDefault(final LoadGraphWith.GraphData loadGraphWith,
                                                        final Class<?> test, final String testMethodName) {
    return loadGraphWith == LoadGraphWith.GraphData.CREW
            || (test == StarGraphTest.class && testMethodName.equals("shouldAttachWithCreateMethod"))
            || (test == DetachedGraphTest.class && testMethodName.equals("testAttachableCreateMethod"));
}