id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
79564911_586
{ "fields": [], "file": "cryptomator/src/test/java/ch/cyberduck/core/cryptomator/features/CryptoBulkFeatureTest.java", "identifier": "CryptoBulkFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPreDirectoryId() throws Exception {\n final Path vault = new Path(\"/vault\", EnumSet.of(Path.Type.directory));\n final NullSession session = new NullSession(new Host(new TestProtocol())) {\n @Override\n @SuppressWarnings(\"unchecked\")\n ...
{ "fields": [ { "declarator": "random\n = new UUIDRandomStringService()", "modifier": "private final", "original_string": "private final RandomStringService random\n = new UUIDRandomStringService();", "type": "RandomStringService", "var_name": "random" }, { ...
{ "body": "@Override\n public R pre(final Transfer.Type type, final Map<TransferItem, TransferStatus> files, final ConnectionCallback callback) throws BackgroundException {\n final Map<TransferItem, TransferStatus> encrypted = new HashMap<>(files.size());\n final ArrayList<Map.Entry<TransferItem, Tra...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1480
{ "fields": [], "file": "dropbox/src/test/java/ch/cyberduck/core/dropbox/DropboxCopyFeatureTest.java", "identifier": "DropboxCopyFeatureTest", "interfaces": "", "superclass": "extends AbstractDropboxTest" }
{ "body": "@Test\n public void testCopyDirectory() throws Exception {\n final Path directory = new DropboxDirectoryFeature(session).mkdir(\n new Path(new DropboxHomeFinderFeature(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.directory)), null, new TransferS...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final DropboxSession session;", "type": "DropboxSession", "var_name": "session" }, { "declarator": "containerService\n = new DropboxPathContainerService()", "m...
{ "body": "@Override\n public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n if(status.isExists()) {\n new DropboxDeleteFeature(session).delete(Collections.singletonMap(target, s...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_705
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/sparkle/SandboxTest.java", "identifier": "SandboxTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsSandboxed() {\n assertFalse(new Sandbox().isSandboxed());\n }", "class_method_signature": "SandboxTest.testIsSandboxed()", "constructor": false, "full_signature": "@Test public void testIsSandboxed()", "identifier": "testIsSandboxed", "invocations": [ "a...
{ "fields": [ { "declarator": "log = Logger.getLogger(Sandbox.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(Sandbox.class);", "type": "Logger", "var_name": "log" } ], "file": "core/dylib/src/main/java/ch/cy...
{ "body": "public native boolean isSandboxed();", "class_method_signature": "Sandbox.isSandboxed()", "constructor": false, "full_signature": "public native boolean isSandboxed()", "identifier": "isSandboxed", "invocations": [], "modifiers": "public native", "parameters": "()", "return": "boolean", "...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_355
{ "fields": [], "file": "nio/src/test/java/ch/cyberduck/core/nio/LocalListServiceTest.java", "identifier": "LocalListServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testListFile() throws Exception {\n final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));\n session.open(Proxy.DIRECT, new DisabledHostKeyCallback(), new DisabledLoginC...
{ "fields": [ { "declarator": "log = Logger.getLogger(LocalListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(LocalListService.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n final AttributedList<ch.cyberduck.core.Path> paths = new AttributedList<>();\n try (DirectoryStream<java.nio.file.Path> directoryStream = Files.newDirector...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1253
{ "fields": [], "file": "backblaze/src/test/java/ch/cyberduck/core/b2/B2LargeUploadPartServiceTest.java", "identifier": "B2LargeUploadPartServiceTest", "interfaces": "", "superclass": "extends AbstractB2Test" }
{ "body": "@Test\n public void testList() throws Exception {\n final Path bucket = new Path(\"test-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Path file = new Path(bucket, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file));\n final B2StartLargeFileResponse s...
{ "fields": [ { "declarator": "log = Logger.getLogger(B2LargeUploadPartService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(B2LargeUploadPartService.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public List<B2UploadPartResponse> list(final String fileid) throws BackgroundException {\n if(log.isInfoEnabled()) {\n log.info(String.format(\"List completed parts of file %s\", fileid));\n }\n // This operation lists the parts that have been uploaded for a specific multipa...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_6
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/kms/KMSEncryptionFeatureTest.java", "identifier": "KMSEncryptionFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test(expected = LoginFailureException.class)\n public void testCreateUserAuthenticationFailure() throws Exception {\n final S3Session session = new S3Session(\n new Host(new S3Protocol(), new S3Protocol().getDefaultHostname(),\n new Credentials(\n \"k...
{ "fields": [ { "declarator": "log = Logger.getLogger(KMSEncryptionFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(KMSEncryptionFeature.class);", "type": "Logger", "var_name": "log" }, { "declar...
{ "body": "@Override\n public Set<Algorithm> getKeys(final Path file, final LoginCallback prompt) throws BackgroundException {\n final Path container = containerService.getContainer(file);\n final Set<Algorithm> keys = super.getKeys(container, prompt);\n if(container.isRoot()) {\n r...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1316
{ "fields": [], "file": "ssh/src/test/java/ch/cyberduck/core/sftp/SFTPExceptionMappingServiceTest.java", "identifier": "SFTPExceptionMappingServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWrapped() {\n assertEquals(InteroperabilityException.class,\n new SFTPExceptionMappingService().map(new TransportException(DisconnectReason.UNKNOWN, new SSHException(DisconnectReason.PROTOCOL_ERROR))).getClass());\n }", "class_method_signature": "SFTPExcept...
{ "fields": [ { "declarator": "log = Logger.getLogger(SFTPExceptionMappingService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SFTPExceptionMappingService.class);", "type": "Logger", "var_name": "log" } ], ...
{ "body": "@Override\n public BackgroundException map(final IOException e) {\n if(ExceptionUtils.getRootCause(e) != e && ExceptionUtils.getRootCause(e) instanceof SSHException) {\n return this.map((SSHException) ExceptionUtils.getRootCause(e));\n }\n final StringBuilder buffer = new...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_640
{ "fields": [], "file": "irods/src/test/java/ch/cyberduck/core/irods/IRODSWriteFeatureTest.java", "identifier": "IRODSWriteFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWrite() throws Exception {\n final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new IRODSProtocol())));\n final Profile profile = new ProfilePlistReader(factory).read(\n new Local(\"../profiles/iRODS (iPlant Collab...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final IRODSSession session;", "type": "IRODSSession", "var_name": "session" } ], "file": "irods/src/main/java/ch/cyberduck/core/irods/IRODSWriteFeature.java", "identifier": "IR...
{ "body": "@Override\n public FileDescriptorOutputStream write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n try {\n final IRODSFileSystemAO fs = session.getClient();\n final IRODSFileOutputStr...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_210
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/cloudfront/CustomOriginCloudFrontDistributionConfigurationTest.java", "identifier": "CustomOriginCloudFrontDistributionConfigurationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testReadNoConfiguredDistributionForOrigin() throws Exception {\n final Host origin = new Host(new TestProtocol(), \"myhost.localdomain\");\n origin.getCdnCredentials().setUsername(System.getProperties().getProperty(\"s3.key\"));\n origin.getCdnCredentials().setPa...
{ "fields": [ { "declarator": "log = Logger.getLogger(CustomOriginCloudFrontDistributionConfiguration.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CustomOriginCloudFrontDistributionConfiguration.class);", "type": "Logge...
{ "body": "@Override\n public Distribution read(final Path file, final Distribution.Method method, final LoginCallback prompt) throws BackgroundException {\n final Distribution distribution = this.connected(new Connected<Distribution>() {\n @Override\n public Distribution call() throws...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_494
{ "fields": [], "file": "dracoon/src/test/java/ch/cyberduck/core/sds/SDSReadFeatureTest.java", "identifier": "SDSReadFeatureTest", "interfaces": "", "superclass": "extends AbstractSDSTest" }
{ "body": "@Test(expected = NotfoundException.class)\n public void testReadNotFound() throws Exception {\n final TransferStatus status = new TransferStatus();\n final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache);\n final Path room = new SDSDirectoryFeature(session...
{ "fields": [ { "declarator": "log = Logger.getLogger(SDSReadFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SDSReadFeature.class);", "type": "Logger", "var_name": "log" }, { "declarator": "sess...
{ "body": "@Override\n public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {\n try {\n final SDSApiClient client = session.getClient();\n final HttpUriRequest request = new HttpGet(String.format(\"%s/v4/nod...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1068
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/transfer/download/RenameExistingFilterTest.java", "identifier": "RenameExistingFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPrepareRenameEmptyFile() throws Exception {\n RenameExistingFilter f = new RenameExistingFilter(new DisabledDownloadSymlinkResolver(), new NullTransferSession(new Host(new TestProtocol())));\n final String name = new AsciiRandomStringService().random();\n fin...
{ "fields": [ { "declarator": "log = Logger.getLogger(RenameExistingFilter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(RenameExistingFilter.class);", "type": "Logger", "var_name": "log" } ], "file": "core...
{ "body": "@Override\n public void apply(final Path file, final Local local, final TransferStatus status,\n final ProgressListener listener) throws BackgroundException {\n if(status.isExists()) {\n if(local.attributes().getSize() == 0) {\n // Placeholder from d...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1438
{ "fields": [], "file": "cli/src/test/java/ch/cyberduck/cli/TerminalOptionsInputValidatorTest.java", "identifier": "TerminalOptionsInputValidatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testListContainers() throws Exception {\n final Set<Protocol> list = new HashSet<>(Arrays.asList(\n new SwiftProtocol(),\n new ProfilePlistReader(new ProtocolFactory(Collections.singleton(new SwiftProtocol())))\n .read(this.getC...
{ "fields": [ { "declarator": "console = new Console()", "modifier": "private final", "original_string": "private final Console console = new Console();", "type": "Console", "var_name": "console" }, { "declarator": "factory", "modifier": "private final", "or...
{ "body": "public boolean validate(final CommandLine input) {\n for(Option o : input.getOptions()) {\n if(Option.UNINITIALIZED == o.getArgs()) {\n continue;\n }\n if(o.hasOptionalArg()) {\n continue;\n }\n if(o.getArgs() != o....
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_882
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/shared/DefaultHomeFinderServiceTest.java", "identifier": "DefaultHomeFinderServiceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testHomeParent() {\n final Path home = new DefaultHomeFinderService(null).find(new Path(\"/\", EnumSet.of(Path.Type.directory)), String.format(\"%s/sandbox/sub\", Path.HOME));\n assertEquals(new Path(\"/sandbox/sub\", EnumSet.of(Path.Type.directory)), home);\n as...
{ "fields": [ { "declarator": "DEFAULT_HOME = new Path(String.valueOf(Path.DELIMITER),\n EnumSet.of(Path.Type.volume, Path.Type.directory))", "modifier": "protected final", "original_string": "protected final Path DEFAULT_HOME = new Path(String.valueOf(Path.DELIMITER),\n EnumSet.of...
{ "body": "@Override\n public Path find() throws BackgroundException {\n final Host host = session.getHost();\n if(host.getWorkdir() != null) {\n return new PathDictionary().deserialize(host.getWorkdir().serialize(SerializerFactory.get()));\n }\n else {\n final Str...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1087
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/pool/DefaultSessionPoolTest.java", "identifier": "DefaultSessionPoolTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = ConnectionCanceledException.class)\n public void testShutdown() throws Exception {\n final DefaultSessionPool pool = new DefaultSessionPool(new TestLoginConnectionService(), new DisabledX509TrustManager(), new DefaultX509KeyManager(),\n new DefaultVaultRegistry(new...
{ "fields": [ { "declarator": "log = Logger.getLogger(DefaultSessionPool.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DefaultSessionPool.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "@Override\n public void shutdown() {\n try {\n if(log.isInfoEnabled()) {\n log.info(String.format(\"Close connection pool %s\", this));\n }\n this.evict();\n pool.close();\n }\n catch(Exception e) {\n log.warn(Str...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_928
{ "fields": [], "file": "core/src/test/java/ch/cyberduck/core/worker/WriteMetadataWorkerTest.java", "identifier": "WriteMetadataWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRunAdd() throws Exception {\n final List<Path> files = new ArrayList<Path>();\n final Path p = new Path(\"a\", EnumSet.of(Path.Type.file));\n files.add(p);\n final Map<String, String> previous = new HashMap<String, String>();\n previous.put(\"k1...
{ "fields": [ { "declarator": "log = Logger.getLogger(WriteMetadataWorker.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(WriteMetadataWorker.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "@Override\n public Boolean run(final Session<?> session) throws BackgroundException {\n final Metadata feature = session.getFeature(Metadata.class);\n if(log.isDebugEnabled()) {\n log.debug(String.format(\"Run with feature %s\", feature));\n }\n for(Path file : fil...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_181
{ "fields": [], "file": "s3/src/test/java/ch/cyberduck/core/s3/S3AccessControlListFeatureTest.java", "identifier": "S3AccessControlListFeatureTest", "interfaces": "", "superclass": "extends AbstractS3Test" }
{ "body": "@Test\n public void testReadContainer() throws Exception {\n final Path container = new Path(\"test-acl-us-east-1-cyberduck\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n final Acl acl = new S3AccessControlListFeature(session).getPermission(container);\n assertTrue(acl.con...
{ "fields": [ { "declarator": "log = Logger.getLogger(S3AccessControlListFeature.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(S3AccessControlListFeature.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public Acl getPermission(final Path file) throws BackgroundException {\n try {\n if(file.getType().contains(Path.Type.upload)) {\n return Acl.EMPTY;\n }\n if(containerService.isContainer(file)) {\n // This method can be pe...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1204
{ "fields": [], "file": "googlestorage/src/test/java/ch/cyberduck/core/googlestorage/GoogleStorageSessionTest.java", "identifier": "GoogleStorageSessionTest", "interfaces": "", "superclass": "extends AbstractGoogleStorageTest" }
{ "body": "@Test(expected = LoginCanceledException.class)\n public void testProjectIdNoAuthorization() throws Exception {\n session.getHost().setCredentials(\n new Credentials(\"stellar-perigee-775\", \"\")\n );\n session.login(Proxy.DIRECT, new DisabledLoginCallback() {\n ...
{ "fields": [ { "declarator": "transport", "modifier": "private", "original_string": "private ApacheHttpTransport transport;", "type": "ApacheHttpTransport", "var_name": "transport" }, { "declarator": "authorizationService", "modifier": "private", "original_...
{ "body": "@Override\n public void login(final Proxy proxy, final LoginCallback prompt,\n final CancelCallback cancel) throws BackgroundException {\n authorizationService.setTokens(authorizationService.authorize(host, prompt, cancel));\n }", "class_method_signature": "GoogleStorage...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_302
{ "fields": [], "file": "azure/src/test/java/ch/cyberduck/core/azure/AzureMoveFeatureTest.java", "identifier": "AzureMoveFeatureTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSupport() {\n final Path c = new Path(\"/c\", EnumSet.of(Path.Type.directory));\n assertFalse(new AzureMoveFeature(null, null).isSupported(c, c));\n final Path cf = new Path(\"/c/f\", EnumSet.of(Path.Type.directory));\n assertTrue(new AzureMoveFeature(...
{ "fields": [ { "declarator": "session", "modifier": "private final", "original_string": "private final AzureSession session;", "type": "AzureSession", "var_name": "session" }, { "declarator": "context", "modifier": "private final", "original_string": "priva...
{ "body": "@Override\n public boolean isSupported(final Path source, final Path target) {\n return !containerService.isContainer(source);\n }", "class_method_signature": "AzureMoveFeature.isSupported(final Path source, final Path target)", "constructor": false, "full_signature": "@Override public b...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_752
{ "fields": [], "file": "core/dylib/src/test/java/ch/cyberduck/core/local/FinderLocalTest.java", "identifier": "FinderLocalTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFollowLinks() {\n assertTrue(new Local(\"/tmp\").exists());\n }", "class_method_signature": "FinderLocalTest.testFollowLinks()", "constructor": false, "full_signature": "@Test public void testFollowLinks()", "identifier": "testFollowLinks", "invocations": [ ...
{ "fields": [ { "declarator": "log = Logger.getLogger(FinderLocal.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FinderLocal.class);", "type": "Logger", "var_name": "log" }, { "declarator": "resolver",...
{ "body": "@Override\n public boolean exists(final LinkOption... options) {\n NSURL resolved = null;\n try {\n resolved = this.lock(false);\n if(null == resolved) {\n return super.exists(options);\n }\n return Files.exists(Paths.get(resolved....
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_247
{ "fields": [], "file": "ftp/src/test/java/ch/cyberduck/core/ftp/list/FTPListResponseReaderTest.java", "identifier": "FTPListResponseReaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = FTPInvalidListException.class)\n public void test3763() throws Exception {\n Path path = new Path(\"/www\", EnumSet.of(Path.Type.directory));\n assertEquals(\"www\", path.getName());\n assertEquals(\"/www\", path.getAbsolute());\n final AttributedList<Path> l...
{ "fields": [ { "declarator": "log = Logger.getLogger(FTPListResponseReader.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FTPListResponseReader.class);", "type": "Logger", "var_name": "log" }, { "decl...
{ "body": "@Override\n public AttributedList<Path> read(final Path directory, final List<String> replies, final ListProgressListener listener) throws FTPInvalidListException {\n final AttributedList<Path> children = new AttributedList<Path>();\n // At least one entry successfully parsed\n bool...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_617
{ "fields": [], "file": "spectra/src/test/java/ch/cyberduck/core/spectra/SpectraProtocolTest.java", "identifier": "SpectraProtocolTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPrefix() {\n assertEquals(\"ch.cyberduck.core.spectra.Spectra\", new SpectraProtocol().getPrefix());\n }", "class_method_signature": "SpectraProtocolTest.testPrefix()", "constructor": false, "full_signature": "@Test public void testPrefix()", "identifier": "test...
{ "fields": [], "file": "spectra/src/main/java/ch/cyberduck/core/spectra/SpectraProtocol.java", "identifier": "SpectraProtocol", "interfaces": "", "methods": [ { "class_method_signature": "SpectraProtocol.getName()", "constructor": false, "full_signature": "@Override public String getNam...
{ "body": "@Override\n public String getPrefix() {\n return String.format(\"%s.%s\", SpectraProtocol.class.getPackage().getName(), \"Spectra\");\n }", "class_method_signature": "SpectraProtocol.getPrefix()", "constructor": false, "full_signature": "@Override public String getPrefix()", "identifie...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
79564911_1341
{ "fields": [], "file": "openstack/src/test/java/ch/cyberduck/core/openstack/SwiftObjectListServiceTest.java", "identifier": "SwiftObjectListServiceTest", "interfaces": "", "superclass": "extends AbstractSwiftTest" }
{ "body": "@Test\n public void testListPlaceholderParent() throws Exception {\n final Path container = new Path(\"test.cyberduck.ch\", EnumSet.of(Path.Type.directory, Path.Type.volume));\n container.attributes().setRegion(\"IAD\");\n final String name = new AlphanumericRandomStringService().ra...
{ "fields": [ { "declarator": "log = Logger.getLogger(SwiftObjectListService.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SwiftObjectListService.class);", "type": "Logger", "var_name": "log" }, { "de...
{ "body": "@Override\n public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {\n try {\n final AttributedList<Path> children = new AttributedList<Path>();\n final int limit = PreferencesFactory.get().getInteger(\"openstac...
{ "created": "1/20/2017 2:16:34 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 79564911, "size": null, "stargazer_count": null, "stars": 706, "updates": "2020-01-27T14:40:15+00:00", "url": "https://github.com/iterate-ch/cyber...
69363264_25
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAfterSecondStepCalledFromFirstStepOfAlternativeFlowWithoutEvent() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n .flow(ALTERNATIVE_FLOW).insteadOf(CUSTOMER_ENTERS_TEXT_AGAIN)\n .step(CONTINUE).continuesAfter(CUSTOMER_ENTERS_TEXT_AGAIN)\n\t\t\...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_33
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAtCalledFromFirstStepOfAlternativeFlowWithRightActor() {\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).as(customer).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_29
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAfterCalledFromMultipleMutuallyExclusiveAlternativeFlows() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT_AG...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_0
{ "fields": [ { "declarator": "engine", "modifier": "private", "original_string": "private FreeMarkerEngine engine;", "type": "FreeMarkerEngine", "var_name": "engine" } ], "file": "requirementsascodeextract/src/test/java/org/requirementsascode/extract/freemarker/FreemarkerEng...
{ "body": "@Test\n public void extractsEmptyStringFromEmptyModel() throws Exception {\n Model model = Model.builder().build();\n String templateFileName = \"testextract.ftl\";\n StringWriter outputWriter = new StringWriter();\n\n engine.extract(model, templateFileName, outputWriter);\n String output =...
{ "fields": [ { "declarator": "dataModel", "modifier": "private", "original_string": "private Map<String, Object> dataModel;", "type": "Map<String, Object>", "var_name": "dataModel" }, { "declarator": "cfg", "modifier": "private", "original_string": "private...
{ "body": "public void extract(Model model, String templateFileName, Writer outputWriter) throws Exception {\n put(\"model\", model);\n Template template = cfg.getTemplate(templateFileName);\n template.process(dataModel, outputWriter);\n }", "class_method_signature": "FreeMarkerEngine.extract(Model model,...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_13
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void doesNotReenterAlternativeFlowEvenIfItHasTrueCondition() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(THIS_STEP_SHOULD_BE_SKIPPED).user(EntersText.class).system(throwsRuntimeException())\n\t\t\t\t\t.step(THIS_STEP_SHOULD_BE_S...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_12
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void reactsToSecondStepAlternativeWhen() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(THIS_STEP_SHOULD_BE_SKIPPED).user(EntersText.class)...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_1
{ "fields": [ { "declarator": "engine", "modifier": "private", "original_string": "private FreeMarkerEngine engine;", "type": "FreeMarkerEngine", "var_name": "engine" } ], "file": "requirementsascodeextract/src/test/java/org/requirementsascode/extract/freemarker/FreemarkerEng...
{ "body": "@Test\n public void extractsUseCaseModel() throws Exception {\n\n Actor firstActor = new Actor(\"First actor\");\n Actor secondActor = new Actor(\"Second actor\");\n\n Model model = Model.builder()\n .useCase(\"Get greeted\")\n .basicFlow()\n .step(\"S1\").system(promptsUserToEnt...
{ "fields": [ { "declarator": "dataModel", "modifier": "private", "original_string": "private Map<String, Object> dataModel;", "type": "Map<String, Object>", "var_name": "dataModel" }, { "declarator": "cfg", "modifier": "private", "original_string": "private...
{ "body": "public void extract(Model model, String templateFileName, Writer outputWriter) throws Exception {\n put(\"model\", model);\n Template template = cfg.getTemplate(templateFileName);\n template.process(dataModel, outputWriter);\n }", "class_method_signature": "FreeMarkerEngine.extract(Model model,...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_28
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAfterCalledFromSecondStepOfAlternativeFlow() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT_AGAIN).user(En...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_32
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n public void doesntContinueAtFirstStepCalledFromFirstStepOfAlternativeFlowWithWrongEvent() { \n Model model = modelBuilder\n .useCase(USE_CASE)\n .basicFlow()\n .step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n .step(CUSTOMER_ENTE...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_24
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n public void doesntContinueAtThirdStepCalledFromFirstStepOfAlternativeFlowWithWrongEvent() { \n Model model = modelBuilder\n .useCase(USE_CASE)\n .flow(ALTERNATIVE_FLOW).insteadOf(CUSTOMER_ENTERS_TEXT_AGAIN)\n .step(CONTINUE).on(EntersNumber.class).continuesAt(CUSTOMER_EN...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_6
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void stepThasHasTrueConditionReactsEvenIfOtherStepWouldBePerformedBySystem() { \t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\t\t\t\n\t\t\t\t.flow(\"Altern...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_15
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\t public void reactsToAlternativeOfAlternative() { \n\t Model model = modelBuilder\n\t .useCase(USE_CASE) \n\t .basicFlow()\n\t .step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n\t .step(THIS_STEP_SHOULD_BE_SKIPPED).user(EntersT...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_23
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n public void continuesAtThirdStepCalledFromFirstStepOfAlternativeFlowWithEvent() { \n Model model = modelBuilder\n .useCase(USE_CASE)\n .flow(ALTERNATIVE_FLOW).insteadOf(CUSTOMER_ENTERS_TEXT_AGAIN)\n .step(CONTINUE).on(EntersText.class).continuesAt(CUSTOMER_ENTERS_NUMBER)...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_35
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAtCalledFromSecondStepOfAlternativeFlow() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\t\t\t\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT_AGAIN).user...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_19
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAtThirdStepCalledFromFirstStepOfAlternativeFlowWithoutEvent() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n .basicFlow()\n .step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n .step(CUSTOMER_ENTERS_TEXT...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_18
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void interruptsReactWhileAfter() {\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT)\n\t\t\t\t\t\t.user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT_AGAIN)\n\t\t\t\t\t\t.user(Enters...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_34
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAtNotCalledWhenActorIsWrong() {\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\t\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).as(secondActor).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT_AGAIN).as(sec...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_22
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n public void doesntContinueWithIgnoredFlowIfConditionFalse() { \n Model model = modelBuilder\n .useCase(USE_CASE)\n .basicFlow()\n .step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n .step(CUSTOMER_ENTERS_TEXT_AGAIN).user(Ente...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_14
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void reactsToAlternativeAfterFirstStep() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(THIS_STEP_SHOULD_BE_SKIPPED).user(EntersText.class)...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_7
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void onlyStepWithRightActorInDifferentFlowReacts() { \n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT)\n\t\t\t\t\t\t.as(secondActor).user(EntersText.class).system(throwsRuntimeException())\t\t\t\n\t\t\t.flow(ALTERNA...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_17
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void interruptsReactWhileBefore() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\t\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT)\n\t\t\t\t\t\t.user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT_AGAIN)\n\t\t\t\t\t\t....
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_4
{ "fields": [ { "declarator": "eventStore", "modifier": "private", "original_string": "private EventStore eventStore;", "type": "EventStore", "var_name": "eventStore" }, { "declarator": "uuid", "modifier": "private", "original_string": "private UUID uuid;", ...
{ "body": "@Test\n\tpublic void withdrawingOftenWorksWhenCycleIsClosed() {\n\t\trequestToAssignLimit(new BigDecimal(100));\n\n\t\tfor (int i = 1; i <= 44; i++) {\n\t\t\trequestWithdrawal(BigDecimal.ONE);\n\t\t}\n\n\t\taggregateRoot().accept(new RequestToCloseCycle());\n\n\t\tfor (int i = 1; i <= 44; i++) {\n\t\t\treq...
{ "fields": [ { "declarator": "useCreditCard = \"Use credit card\"", "modifier": "private static final", "original_string": "private static final String useCreditCard = \"Use credit card\";", "type": "String", "var_name": "useCreditCard" }, { "declarator": "requestsToAs...
{ "body": "public void accept(Object command) {\n\t\tthis.creditCard = loadCreditCard();\n\t\tOptional<DomainEvent> event = restoreStateAndHandle(command);\n\t\tapplyToCreditCardIfPresent(event);\n\t\tsaveCreditCard();\n\t}", "class_method_signature": "CreditCardAggregateRoot.accept(Object command)", "constructor...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_8
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void onlyStepWithDefaultActorInDifferentFlowReacts() { \n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE).as(customer)\t\n\t\t\t\t.basicFlow()\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT)\n\t\t\t\t\t\t.as(secondActor).user(EntersText.class).system(throwsRuntimeException())\t\t\t\n\t\t\t...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_21
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n public void doesntContinueWithIgnoredFlowIfItIsAnAfterFlow() { \n Model model = modelBuilder\n .useCase(USE_CASE)\n .basicFlow()\n .step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n .step(CUSTOMER_ENTERS_TEXT_AGAIN).user(Ent...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_20
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\t public void continuesWithPreferredFlow() { \n\t Model model = modelBuilder\n\t .useCase(USE_CASE)\n .basicFlow()\n .step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n .step(CUSTOMER_ENTERS_TEXT_AGAIN).user(EntersText.class)...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_36
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAtCalledFromMultipleMutuallyExclusiveAlternativeFlows() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\t\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT_A...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_9
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void doesNotReactIfStepHasWrongActorInDifferentFlow() { \n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT)\n\t\t\t\t\t\t.as(customer).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENT...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_5
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void onlyStepWithTrueConditionReacts() { \t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\t\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\t\t\t\n\t\t\t\t.flow(\"Alternative Flow: Skipped\").condition(() ->...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_16
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void reactsToAlternativeAtFirstStep() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(THIS_STEP_SHOULD_BE_SKIPPED).user(EntersText.class).system(throwsRuntimeException())\n\t\t\t\t\t.step(THIS_STEP_SHOULD_BE_SKIPPED_AS_WELL).user(Enters...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_31
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n public void continuesAtFirstStepCalledFromFirstStepOfAlternativeFlowWithEvent() { \n Model model = modelBuilder\n .useCase(USE_CASE)\n .basicFlow()\n .step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n .step(CUSTOMER_ENTERS_TEXT_AG...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_27
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAfterNotCalledWhenActorIsWrong() {\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\t\t\t\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).as(secondActor).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT_AGAIN).a...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_11
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void reactsToFirstStepAlternativeWhen() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\t\t\t\t\t\n\t\t\t\t\t.step(THIS_STEP_SHOULD_BE_SKIPPED).user(EntersText.class).system(throwsRuntimeException())\n\t\t\t\t\t.step(THIS_STEP_SHOULD_BE_SKIPPED_AS_W...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_2
{ "fields": [ { "declarator": "engine", "modifier": "private", "original_string": "private FreeMarkerEngine engine;", "type": "FreeMarkerEngine", "var_name": "engine" } ], "file": "requirementsascodeextract/src/test/java/org/requirementsascode/extract/freemarker/FreemarkerEng...
{ "body": "@Test\n public void extractsFlowlessModel() throws Exception {\n Actor secondActor = new Actor(\"Second actor\");\n\n Model model = Model.builder().on(entersName()).system(greetsUser()).on(entersName()).systemPublish(\n nameEntered()).condition(thereIsNoAlternative()).step(\"Three\").on(entersN...
{ "fields": [ { "declarator": "dataModel", "modifier": "private", "original_string": "private Map<String, Object> dataModel;", "type": "Map<String, Object>", "var_name": "dataModel" }, { "declarator": "cfg", "modifier": "private", "original_string": "private...
{ "body": "public void extract(Model model, String templateFileName, Writer outputWriter) throws Exception {\n put(\"model\", model);\n Template template = cfg.getTemplate(templateFileName);\n template.process(dataModel, outputWriter);\n }", "class_method_signature": "FreeMarkerEngine.extract(Model model,...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_3
{ "fields": [], "file": "requirementsascodeexamples/actor/src/test/java/actor/ActorExampleTest.java", "identifier": "ActorExampleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void greetsJack() {\n OutputAdapter outputAdapter = mock(OutputAdapter.class);\n final SayHello sayHello = new SayHello(outputAdapter);\n AbstractActor greetingService = new GreetingService(sayHello);\n greetingService.reactTo(new RequestHello(\"Jack\"));\n \n verify(outpu...
{ "fields": [], "file": "requirementsascodeexamples/actor/src/main/java/actor/ActorExample.java", "identifier": "OutputAdapter", "interfaces": "", "methods": [ { "class_method_signature": "OutputAdapter.showMessage(String message)", "constructor": false, "full_signature": "public void sh...
{ "body": "public void showMessage(String message) {\n System.out.println(message);\n }", "class_method_signature": "OutputAdapter.showMessage(String message)", "constructor": false, "full_signature": "public void showMessage(String message)", "identifier": "showMessage", "invocations": [ "println" ...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_10
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void doesNotReactIfStepHasRightActorButFalseCondition() {\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\t\t\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT)\n\t\t\t\t\t\t.as(secondActor).user(EntersText.class).system(displaysEnteredText())\t\t\t\t\n\t\t\t\t.flow(AL...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_26
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAfterCalledFromFirstStepOfAlternativeFlowWithRightActor() {\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).as(secondActor).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_E...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
69363264_30
{ "fields": [ { "declarator": "secondActor", "modifier": "private", "original_string": "private Actor secondActor;", "type": "Actor", "var_name": "secondActor" }, { "declarator": "timesDisplayed", "modifier": "private", "original_string": "private int timesD...
{ "body": "@Test\n\tpublic void continuesAtFirstStepCalledFromFirstStepOfAlternativeFlowWithoutEvent() {\t\t\n\t\tModel model = modelBuilder\n\t\t\t.useCase(USE_CASE)\n\t\t\t\t.basicFlow()\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT).user(EntersText.class).system(displaysEnteredText())\n\t\t\t\t\t.step(CUSTOMER_ENTERS_TEXT...
{ "fields": [ { "declarator": "useCase", "modifier": "private", "original_string": "private UseCase useCase;", "type": "UseCase", "var_name": "useCase" } ], "file": "requirementsascodecore/src/main/java/org/requirementsascode/Flow.java", "identifier": "Flow", "interfaces"...
{ "body": "Flow(String name, UseCase useCase) {\n\t\tsuper(name, useCase.getModel());\n\t\tthis.useCase = useCase;\n\t}", "class_method_signature": "Flow.Flow(String name, UseCase useCase)", "constructor": true, "full_signature": " Flow(String name, UseCase useCase)", "identifier": "Flow", "invocations": [...
{ "created": "9/27/2016 2:06:22 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 69363264, "size": null, "stargazer_count": null, "stars": 104, "updates": "2020-01-02T05:54:33+00:00", "url": "https://github.com/bertilmuth/requi...
1052717_0
{ "fields": [], "file": "impl/src/test/java/net/camelpe/extension/cdi/spi/AnnotatedFieldProcessorTest.java", "identifier": "AnnotatedFieldProcessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic final void assertThatEnsureNoConflictingAnnotationsPresentOnCorrectlyRecognizesNoConflict() {\n\t\tAnnotatedFieldProcessor\n\t\t .ensureNoConflictingAnnotationsPresentOn(BeanHavingEndpointInjectAnnotatedField.class);\n\t}", "class_method_signature": "AnnotatedFieldProcessorTest.ass...
{ "fields": [ { "declarator": "CAMEL", "modifier": "static final", "original_string": "static final Set<Class<? extends Annotation>> CAMEL;", "type": "Set<Class<? extends Annotation>>", "var_name": "CAMEL" }, { "declarator": "CDI_CONFLICTS", "modifier": "static fi...
{ "body": "static <X> void ensureNoConflictingAnnotationsPresentOn(final Class<X> type)\n\t throws ResolutionException {\n\t\tfinal Set<Field> fieldsHavingConflictingAnnotations = new HashSet<Field>();\n\t\tfor (final Field fieldToInspect : allFieldsAndSuperclassFieldsIn(type)) {\n\t\t\tif (isAnnotatedWithOneO...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1052717, "size": 52294, "stargazer_count": 8, "stars": null, "updates": null, "url": "https://github.com/obergner/camelpe" }
1052717_1
{ "fields": [], "file": "impl/src/test/java/net/camelpe/extension/cdi/spi/AnnotatedFieldProcessorTest.java", "identifier": "AnnotatedFieldProcessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = ResolutionException.class)\n\tpublic final void assertThatEnsureNoConflictingAnnotationsPresentOnCorrectlyRecognizesAConflict() {\n\t\tAnnotatedFieldProcessor\n\t\t .ensureNoConflictingAnnotationsPresentOn(BeanHavingEndpointInjectAndInjectAnnotatedField.class);\n\t}", "class_metho...
{ "fields": [ { "declarator": "CAMEL", "modifier": "static final", "original_string": "static final Set<Class<? extends Annotation>> CAMEL;", "type": "Set<Class<? extends Annotation>>", "var_name": "CAMEL" }, { "declarator": "CDI_CONFLICTS", "modifier": "static fi...
{ "body": "static <X> void ensureNoConflictingAnnotationsPresentOn(final Class<X> type)\n\t throws ResolutionException {\n\t\tfinal Set<Field> fieldsHavingConflictingAnnotations = new HashSet<Field>();\n\t\tfor (final Field fieldToInspect : allFieldsAndSuperclassFieldsIn(type)) {\n\t\t\tif (isAnnotatedWithOneO...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1052717, "size": 52294, "stargazer_count": 8, "stars": null, "updates": null, "url": "https://github.com/obergner/camelpe" }
1052717_2
{ "fields": [], "file": "impl/src/test/java/net/camelpe/extension/cdi/spi/AnnotatedFieldProcessorTest.java", "identifier": "AnnotatedFieldProcessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic final void assertThatHasCamelInjectAnnotatedFieldsRecognizesThatNoCamelInjectAnnotationIsPresentOnAnyField() {\n\t\tfinal boolean answer = AnnotatedFieldProcessor\n\t\t .hasCamelInjectAnnotatedFields(BeanHavingNoEndpointInjectAnnotatedField.class);\n\n\t\tassertFalse(\"AnnotatedField...
{ "fields": [ { "declarator": "CAMEL", "modifier": "static final", "original_string": "static final Set<Class<? extends Annotation>> CAMEL;", "type": "Set<Class<? extends Annotation>>", "var_name": "CAMEL" }, { "declarator": "CDI_CONFLICTS", "modifier": "static fi...
{ "body": "static <X> boolean hasCamelInjectAnnotatedFields(final Class<X> type) {\n\t\treturn !camelInjectAnnotatedFieldsIn(type).isEmpty();\n\t}", "class_method_signature": "AnnotatedFieldProcessor.hasCamelInjectAnnotatedFields(final Class<X> type)", "constructor": false, "full_signature": "static boolean has...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1052717, "size": 52294, "stargazer_count": 8, "stars": null, "updates": null, "url": "https://github.com/obergner/camelpe" }
1052717_3
{ "fields": [], "file": "impl/src/test/java/net/camelpe/extension/cdi/spi/AnnotatedFieldProcessorTest.java", "identifier": "AnnotatedFieldProcessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic final void assertThatHasCamelInjectAnnotatedFieldsRecognizesEndpointInjectAnnotationOnField() {\n\t\tfinal boolean answer = AnnotatedFieldProcessor\n\t\t .hasCamelInjectAnnotatedFields(BeanHavingEndpointInjectAnnotatedField.class);\n\n\t\tassertTrue(\"AnnotatedFieldProcessor.hasCamel...
{ "fields": [ { "declarator": "CAMEL", "modifier": "static final", "original_string": "static final Set<Class<? extends Annotation>> CAMEL;", "type": "Set<Class<? extends Annotation>>", "var_name": "CAMEL" }, { "declarator": "CDI_CONFLICTS", "modifier": "static fi...
{ "body": "static <X> boolean hasCamelInjectAnnotatedFields(final Class<X> type) {\n\t\treturn !camelInjectAnnotatedFieldsIn(type).isEmpty();\n\t}", "class_method_signature": "AnnotatedFieldProcessor.hasCamelInjectAnnotatedFields(final Class<X> type)", "constructor": false, "full_signature": "static boolean has...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1052717, "size": 52294, "stargazer_count": 8, "stars": null, "updates": null, "url": "https://github.com/obergner/camelpe" }
1052717_4
{ "fields": [], "file": "impl/src/test/java/net/camelpe/extension/cdi/spi/AnnotatedFieldProcessorTest.java", "identifier": "AnnotatedFieldProcessorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic final void assertThatCamelInjectAnnotatedFieldsInReturnsEnpointInjectAnnotatedField() {\n\t\tfinal Set<Field> camelInjectAnnotatedFields = AnnotatedFieldProcessor\n\t\t .camelInjectAnnotatedFieldsIn(BeanHavingEndpointInjectAnnotatedField.class);\n\n\t\tassertEquals(\"AnnotatedFieldPr...
{ "fields": [ { "declarator": "CAMEL", "modifier": "static final", "original_string": "static final Set<Class<? extends Annotation>> CAMEL;", "type": "Set<Class<? extends Annotation>>", "var_name": "CAMEL" }, { "declarator": "CDI_CONFLICTS", "modifier": "static fi...
{ "body": "static <X> Set<Field> camelInjectAnnotatedFieldsIn(final Class<X> type) {\n\t\tfinal Set<Field> camelInjectAnnotatedFields = new HashSet<Field>();\n\t\tfor (final Field fieldToInspect : allFieldsAndSuperclassFieldsIn(type)) {\n\t\t\tif (isAnnotatedWithOneOf(fieldToInspect, CAMEL)) {\n\t\t\t\tcamelInjectAnn...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1052717, "size": 52294, "stargazer_count": 8, "stars": null, "updates": null, "url": "https://github.com/obergner/camelpe" }
69732850_2
{ "fields": [ { "declarator": "props", "modifier": "private", "original_string": "private ConfigProperties props;", "type": "ConfigProperties", "var_name": "props" }, { "declarator": "thrown = ExpectedException.none()", "modifier": "@Rule public", "original_...
{ "body": "@Test\n public void testMissingFile() {\n thrown.expect(IllegalArgumentException.class);\n ConfigProperties.fromClasspathFile(\"doesnotexist.properties\");\n }", "class_method_signature": "ConfigPropertiesTest.testMissingFile()", "constructor": false, "full_signature": "@Test publ...
{ "fields": [ { "declarator": "props", "modifier": "private final", "original_string": "private final Properties props;", "type": "Properties", "var_name": "props" }, { "declarator": "source", "modifier": "private final", "original_string": "private final St...
{ "body": "public static ConfigProperties fromClasspathFile(String filename) {\n try (InputStream stream = ConfigProperties.class.getClassLoader().getResourceAsStream(filename)) {\n if (stream == null) {\n throw new IllegalArgumentException(\"Could not load classpath file [\" + filena...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 69732850, "size": 53, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/amdw/boilerplate" }
69732850_0
{ "fields": [ { "declarator": "props", "modifier": "private", "original_string": "private ConfigProperties props;", "type": "ConfigProperties", "var_name": "props" }, { "declarator": "thrown = ExpectedException.none()", "modifier": "@Rule public", "original_...
{ "body": "@Test\n public void testRequiredStringProperty() {\n assertEquals(\"thevalue\", props.getRequiredString(\"AProperty\"));\n }", "class_method_signature": "ConfigPropertiesTest.testRequiredStringProperty()", "constructor": false, "full_signature": "@Test public void testRequiredStringPrope...
{ "fields": [ { "declarator": "props", "modifier": "private final", "original_string": "private final Properties props;", "type": "Properties", "var_name": "props" }, { "declarator": "source", "modifier": "private final", "original_string": "private final St...
{ "body": "public String getRequiredString(String key) {\n if (!props.containsKey(key)) {\n throw new MissingPropertyException(key, source);\n }\n return props.getProperty(key);\n }", "class_method_signature": "ConfigProperties.getRequiredString(String key)", "constructor": fals...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 69732850, "size": 53, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/amdw/boilerplate" }
69732850_1
{ "fields": [ { "declarator": "props", "modifier": "private", "original_string": "private ConfigProperties props;", "type": "ConfigProperties", "var_name": "props" }, { "declarator": "thrown = ExpectedException.none()", "modifier": "@Rule public", "original_...
{ "body": "@Test\n public void testMissingProperty() {\n thrown.expect(ConfigProperties.MissingPropertyException.class);\n thrown.expectMessage(\"test.properties\");\n props.getRequiredString(\"DoesNotExist\");\n }", "class_method_signature": "ConfigPropertiesTest.testMissingProperty()", ...
{ "fields": [ { "declarator": "props", "modifier": "private final", "original_string": "private final Properties props;", "type": "Properties", "var_name": "props" }, { "declarator": "source", "modifier": "private final", "original_string": "private final St...
{ "body": "public String getRequiredString(String key) {\n if (!props.containsKey(key)) {\n throw new MissingPropertyException(key, source);\n }\n return props.getProperty(key);\n }", "class_method_signature": "ConfigProperties.getRequiredString(String key)", "constructor": fals...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 69732850, "size": 53, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/amdw/boilerplate" }
46709421_1
{ "fields": [], "file": "timber/src/test/java/timber/log/TimberTest.java", "identifier": "TimberTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void nullTree() {\n try {\n Timber.plant(null);\n fail();\n } catch (NullPointerException e) {\n assertThat(e).hasMessage(\"tree == null\");\n }\n }", "class_method_signature": "TimberTest.nullTree()", "constructor": false, "full_signature": "@Test public void nu...
{ "fields": [ { "declarator": "TREE_ARRAY_EMPTY = new Tree[0]", "modifier": "private static final", "original_string": "private static final Tree[] TREE_ARRAY_EMPTY = new Tree[0];", "type": "Tree[]", "var_name": "TREE_ARRAY_EMPTY" }, { "declarator": "FOREST = new ArrayL...
{ "body": "public static void plant(Tree tree) {\n if (tree == null) {\n throw new NullPointerException(\"tree == null\");\n }\n if (tree == TREE_OF_SOULS) {\n throw new IllegalArgumentException(\"Cannot plant Timber into itself.\");\n }\n synchronized (FOREST) {\n FOREST.add(tree);\n ...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 46709421, "size": 199, "stargazer_count": 22, "stars": null, "updates": null, "url": "https://github.com/AndroidKnife/Utils" }
46709421_0
{ "fields": [], "file": "timber/src/test/java/timber/log/TimberTest.java", "identifier": "TimberTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void treeCount() {\n // inserts trees and checks if the amount of returned trees matches.\n assertThat(Timber.treeCount()).isEqualTo(0);\n for(int i= 1 ; i < 50 ; i++){\n Timber.plant(new Timber.DebugTree());\n assertThat(Timber.treeCount()).isEqualTo(i);\n }\n Timber....
{ "fields": [ { "declarator": "TREE_ARRAY_EMPTY = new Tree[0]", "modifier": "private static final", "original_string": "private static final Tree[] TREE_ARRAY_EMPTY = new Tree[0];", "type": "Tree[]", "var_name": "TREE_ARRAY_EMPTY" }, { "declarator": "FOREST = new ArrayL...
{ "body": "public static int treeCount() {\n synchronized (FOREST) {\n return FOREST.size();\n }\n }", "class_method_signature": "Timber.treeCount()", "constructor": false, "full_signature": "public static int treeCount()", "identifier": "treeCount", "invocations": [ "size" ], "modifiers...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 46709421, "size": 199, "stargazer_count": 22, "stars": null, "updates": null, "url": "https://github.com/AndroidKnife/Utils" }
46709421_2
{ "fields": [], "file": "timber/src/test/java/timber/log/TimberTest.java", "identifier": "TimberTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void uprootThrowsIfMissing() {\n try {\n Timber.uproot(new Timber.DebugTree());\n fail();\n } catch (IllegalArgumentException e) {\n assertThat(e).hasMessageStartingWith(\"Cannot uproot tree which is not planted: \");\n }\n }", "class_method_signature": "TimberTest.u...
{ "fields": [ { "declarator": "TREE_ARRAY_EMPTY = new Tree[0]", "modifier": "private static final", "original_string": "private static final Tree[] TREE_ARRAY_EMPTY = new Tree[0];", "type": "Tree[]", "var_name": "TREE_ARRAY_EMPTY" }, { "declarator": "FOREST = new ArrayL...
{ "body": "public static void uproot(Tree tree) {\n synchronized (FOREST) {\n if (!FOREST.remove(tree)) {\n throw new IllegalArgumentException(\"Cannot uproot tree which is not planted: \" + tree);\n }\n forestAsArray = FOREST.toArray(new Tree[FOREST.size()]);\n }\n }", "class_method_si...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 46709421, "size": 199, "stargazer_count": 22, "stars": null, "updates": null, "url": "https://github.com/AndroidKnife/Utils" }
85416181_0
{ "fields": [ { "declarator": "cut", "modifier": "", "original_string": "OperationService cut;", "type": "OperationService", "var_name": "cut" } ], "file": "calculator/src/test/java/com/airhacks/calculator/operations/boundary/OperationServiceTest.java", "identifier": "Opera...
{ "body": "@Test(expected = ArithmeticWebException.class)\n public void divideByZero(){\n this.cut.divide(2,0);\n\n }", "class_method_signature": "OperationServiceTest.divideByZero()", "constructor": false, "full_signature": "@Test(expected = ArithmeticWebException.class) public void divideByZero()...
{ "fields": [ { "declarator": "client", "modifier": "private", "original_string": "private Client client;", "type": "Client", "var_name": "client" }, { "declarator": "tut", "modifier": "private", "original_string": "private WebTarget tut;", "type": "We...
{ "body": "public double divide(int a,int b){\n try {\n return verifyResult(a / b);\n }catch(ArithmeticException ex){\n this.counter.overflow();\n throw new ArithmeticWebException(ex.getMessage());\n }\n }", "class_method_signature": "OperationService.divide(...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 85416181, "size": 62, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/AdamBien/javaee-calculator" }
85416181_1
{ "fields": [ { "declarator": "cut", "modifier": "", "original_string": "MetricsCounter cut;", "type": "MetricsCounter", "var_name": "cut" } ], "file": "calculator/src/test/java/com/airhacks/calculator/kpi/boundary/MetricsCounterTest.java", "identifier": "MetricsCounterTest...
{ "body": "@Test\n public void calculateMetrics() {\n this.cut.lastSuccess = 10;\n this.cut.success.set(40);\n this.cut.calculateMetrics();\n assertThat(this.cut.successesPerSecond,is(3d));\n assertThat(this.cut.lastSuccess,is(this.cut.success.longValue()));\n }", "class_met...
{ "fields": [ { "declarator": "failedInvocations", "modifier": "", "original_string": "ConcurrentHashMap<String,Integer> failedInvocations;", "type": "ConcurrentHashMap<String,Integer>", "var_name": "failedInvocations" }, { "declarator": "fortyTwo", "modifier": ""...
{ "body": "@Schedule(minute = \"*\",second = \"*/10\",hour = \"*\")\n public void calculateMetrics() {\n System.out.println(\".\");\n this.successesPerSecond = ((double)(success.longValue() - this.lastSuccess))/10;\n this.lastSuccess = success.longValue();\n\n this.overflowsPerSecond = ...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 85416181, "size": 62, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/AdamBien/javaee-calculator" }
26403452_2
{ "fields": [ { "declarator": "responseInterceptor", "modifier": "@Mock private", "original_string": "@Mock private ResponseInterceptor responseInterceptor;", "type": "ResponseInterceptor", "var_name": "responseInterceptor" }, { "declarator": "requestInterceptor", ...
{ "body": "@Test\n public void interceptorRequest_AnyRequestBuilder_ShouldApplyAllRegisteredInterceptors() {\n // Given\n RequestInterceptorContext requestBuilder = mock(RequestInterceptorContext.class);\n\n // When\n engine.interceptRequest(requestBuilder);\n\n // Then\n ...
{ "fields": [ { "declarator": "interceptorManager", "modifier": "private final", "original_string": "private final InterceptorManagerImpl interceptorManager;", "type": "InterceptorManagerImpl", "var_name": "interceptorManager" } ], "file": "requestor/core/requestor-api/src/ma...
{ "body": "public void interceptRequest(RequestInterceptorContext request) {\n for (RequestInterceptor interceptor : interceptorManager.getRequestInterceptors()) {\n interceptor.intercept(request);\n }\n }", "class_method_signature": "InterceptorEngine.interceptRequest(RequestInterceptor...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_3
{ "fields": [ { "declarator": "responseInterceptor", "modifier": "@Mock private", "original_string": "@Mock private ResponseInterceptor responseInterceptor;", "type": "ResponseInterceptor", "var_name": "responseInterceptor" }, { "declarator": "requestInterceptor", ...
{ "body": "@Test\n public void interceptorResponse_AnyResponseBuilder_ShouldApplyAllRegisteredInterceptors() {\n // Given\n Request request = mock(Request.class);\n ResponseInterceptorContext response = mock(ResponseInterceptorContext.class);\n\n // When\n engine.interceptRespons...
{ "fields": [ { "declarator": "interceptorManager", "modifier": "private final", "original_string": "private final InterceptorManagerImpl interceptorManager;", "type": "InterceptorManagerImpl", "var_name": "interceptorManager" } ], "file": "requestor/core/requestor-api/src/ma...
{ "body": "public void interceptResponse(Request request, ResponseInterceptorContext response) {\n for (ResponseInterceptor interceptor : interceptorManager.getResponseInterceptors()) {\n interceptor.intercept(request, response);\n }\n }", "class_method_signature": "InterceptorEngine.int...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_8
{ "fields": [ { "declarator": "serdesManager", "modifier": "@Mock private", "original_string": "@Mock private SerdesManagerImpl serdesManager;", "type": "SerdesManagerImpl", "var_name": "serdesManager" }, { "declarator": "providerManager", "modifier": "@Mock priva...
{ "body": "@Test\n @SuppressWarnings(\"unchecked\")\n public void serializeRequest_RequestWithCollectionPayload_ShouldCallSerializeCollectionInstance() {\n // Given\n final List<Object> collectionInstance = Arrays.asList(new Object(), new Object());\n final String mediaType = \"don't/matter...
{ "fields": [ { "declarator": "logger = Logger.getLogger(SerializationEngine.class.getName())", "modifier": "private static", "original_string": "private static Logger logger = Logger.getLogger(SerializationEngine.class.getName());", "type": "Logger", "var_name": "logger" }, ...
{ "body": "public SerializedRequestDelegate serializeRequest(Request request) {\n Object payload = request.getPayload();\n String body = null;\n if (payload != null) {\n final String mediaType = getRequestMediaType(request);\n if (payload instanceof Collection) {\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_4
{ "fields": [ { "declarator": "serdesManager", "modifier": "@Mock private", "original_string": "@Mock private SerdesManagerImpl serdesManager;", "type": "SerdesManagerImpl", "var_name": "serdesManager" }, { "declarator": "providerManager", "modifier": "@Mock priva...
{ "body": "@Test\n @SuppressWarnings(\"unchecked\")\n public void deserializeResponse_OneClass_ShouldDeserializeAsSingleInstance() {\n // Given\n final Class<Object> clazz = Object.class;\n final String mediaType = \"don't/matter\";\n final Payload payload = new Payload(\"any seriali...
{ "fields": [ { "declarator": "logger = Logger.getLogger(SerializationEngine.class.getName())", "modifier": "private static", "original_string": "private static Logger logger = Logger.getLogger(SerializationEngine.class.getName());", "type": "Logger", "var_name": "logger" }, ...
{ "body": "public <T, C extends Collection<T>> Response<C> deserializeResponse(Request request,\n SerializedResponse response,\n Class<T> type,\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_10
{ "fields": [ { "declarator": "responseFilter", "modifier": "@Mock private", "original_string": "@Mock private ResponseFilter responseFilter;", "type": "ResponseFilter", "var_name": "responseFilter" }, { "declarator": "requestFilter", "modifier": "@Mock private", ...
{ "body": "@Test\n public void filterResponse_AnyResponseBuilder_ShouldApplyAllRegisteredFilters() {\n // Given\n Request request = mock(Request.class);\n ResponseFilterContext response = mock(ResponseFilterContext.class);\n\n // When\n engine.filterResponse(request, response);\n...
{ "fields": [ { "declarator": "filterManager", "modifier": "private final", "original_string": "private final FilterManagerImpl filterManager;", "type": "FilterManagerImpl", "var_name": "filterManager" } ], "file": "requestor/core/requestor-api/src/main/java/io/reinert/reques...
{ "body": "public void filterResponse(Request request, ResponseFilterContext response) {\n for (ResponseFilter filter : filterManager.getResponseFilters()) {\n filter.filter(request, response);\n }\n }", "class_method_signature": "FilterEngine.filterResponse(Request request, ResponseFilt...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_5
{ "fields": [ { "declarator": "serdesManager", "modifier": "@Mock private", "original_string": "@Mock private SerdesManagerImpl serdesManager;", "type": "SerdesManagerImpl", "var_name": "serdesManager" }, { "declarator": "providerManager", "modifier": "@Mock priva...
{ "body": "@Test\n @SuppressWarnings(\"unchecked\")\n public void deserializeResponse_TwoClasses_ShouldDeserializeAsCollection() {\n // Given\n final Class<List> collectionClazz = List.class;\n final Class<Object> clazz = Object.class;\n final String mediaType = \"don't/matter\";\n ...
{ "fields": [ { "declarator": "logger = Logger.getLogger(SerializationEngine.class.getName())", "modifier": "private static", "original_string": "private static Logger logger = Logger.getLogger(SerializationEngine.class.getName());", "type": "Logger", "var_name": "logger" }, ...
{ "body": "public <T, C extends Collection<T>> Response<C> deserializeResponse(Request request,\n SerializedResponse response,\n Class<T> type,\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_9
{ "fields": [ { "declarator": "responseFilter", "modifier": "@Mock private", "original_string": "@Mock private ResponseFilter responseFilter;", "type": "ResponseFilter", "var_name": "responseFilter" }, { "declarator": "requestFilter", "modifier": "@Mock private", ...
{ "body": "@Test\n public void filterRequest_AnyRequestBuilder_ShouldApplyAllRegisteredFilters() {\n // Given\n RequestFilterContext request = mock(RequestFilterContext.class);\n\n // When\n engine.filterRequest(request);\n\n // Then\n verify(requestFilter).filter(request)...
{ "fields": [ { "declarator": "filterManager", "modifier": "private final", "original_string": "private final FilterManagerImpl filterManager;", "type": "FilterManagerImpl", "var_name": "filterManager" } ], "file": "requestor/core/requestor-api/src/main/java/io/reinert/reques...
{ "body": "public void filterRequest(RequestFilterContext request) {\n for (RequestFilter filter : filterManager.getRequestFilters()) {\n filter.filter(request);\n }\n }", "class_method_signature": "FilterEngine.filterRequest(RequestFilterContext request)", "constructor": false, "ful...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_6
{ "fields": [ { "declarator": "serdesManager", "modifier": "@Mock private", "original_string": "@Mock private SerdesManagerImpl serdesManager;", "type": "SerdesManagerImpl", "var_name": "serdesManager" }, { "declarator": "providerManager", "modifier": "@Mock priva...
{ "body": "@Test\n public void serializeRequest_RequestWithoutPayload_ShouldNeverAskSerializationEngine() {\n // Given\n Request request = mock(Request.class);\n when(request.getPayload()).thenReturn(null);\n\n // When\n engine.serializeRequest(request);\n\n // Then\n ...
{ "fields": [ { "declarator": "logger = Logger.getLogger(SerializationEngine.class.getName())", "modifier": "private static", "original_string": "private static Logger logger = Logger.getLogger(SerializationEngine.class.getName());", "type": "Logger", "var_name": "logger" }, ...
{ "body": "public SerializedRequestDelegate serializeRequest(Request request) {\n Object payload = request.getPayload();\n String body = null;\n if (payload != null) {\n final String mediaType = getRequestMediaType(request);\n if (payload instanceof Collection) {\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_7
{ "fields": [ { "declarator": "serdesManager", "modifier": "@Mock private", "original_string": "@Mock private SerdesManagerImpl serdesManager;", "type": "SerdesManagerImpl", "var_name": "serdesManager" }, { "declarator": "providerManager", "modifier": "@Mock priva...
{ "body": "@Test\n @SuppressWarnings(\"unchecked\")\n public void serializeRequest_RequestWithSinglePayload_ShouldCallSerializeSingleInstance() {\n // Given\n final Object singleInstance = new Object();\n final String mediaType = \"don't/matter\";\n\n Request request = mock(Request.c...
{ "fields": [ { "declarator": "logger = Logger.getLogger(SerializationEngine.class.getName())", "modifier": "private static", "original_string": "private static Logger logger = Logger.getLogger(SerializationEngine.class.getName());", "type": "Logger", "var_name": "logger" }, ...
{ "body": "public SerializedRequestDelegate serializeRequest(Request request) {\n Object payload = request.getPayload();\n String body = null;\n if (payload != null) {\n final String mediaType = getRequestMediaType(request);\n if (payload instanceof Collection) {\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_0
{ "fields": [ { "declarator": "manager = new ProviderManagerImpl()", "modifier": "private", "original_string": "private ProviderManagerImpl manager = new ProviderManagerImpl();", "type": "ProviderManagerImpl", "var_name": "manager" } ], "file": "requestor/core/requestor-api/s...
{ "body": "@Test\n public void wrappedManagerShouldNotBeAffected() {\n final Provider<Collection> collectionProvider = manager.get(Collection.class);\n assert collectionProvider != null;\n final Collection c = collectionProvider.getInstance();\n Assert.assertEquals(c.size(), 0);\n ...
{ "fields": [ { "declarator": "providers = new HashMap<String, Provider<?>>()", "modifier": "private final", "original_string": "private final Map<String, Provider<?>> providers = new HashMap<String, Provider<?>>();", "type": "Map<String, Provider<?>>", "var_name": "providers" } ...
{ "body": "@SuppressWarnings(\"unchecked\")\n @Nullable\n public <T> Provider<T> get(Class<T> type) {\n return (Provider<T>) providers.get(type.getName());\n }", "class_method_signature": "ProviderManagerImpl.get(Class<T> type)", "constructor": false, "full_signature": "@SuppressWarnings(\"unche...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
26403452_1
{ "fields": [ { "declarator": "serializationEngine", "modifier": "@Mock private", "original_string": "@Mock private SerializationEngine serializationEngine;", "type": "SerializationEngine", "var_name": "serializationEngine" }, { "declarator": "filterEngine", "modi...
{ "body": "@Test\n public <R extends RequestBuilder & RequestFilterContext> void process_ShouldFilterThenSerializeThenIntercept() {\n // Given\n @SuppressWarnings(\"unchecked\")\n R request = (R) mock(RequestBuilder.class, withSettings().extraInterfaces(RequestFilterContext.class));\n S...
{ "fields": [ { "declarator": "formDataSerializer", "modifier": "private final", "original_string": "private final FormDataSerializer formDataSerializer;", "type": "FormDataSerializer", "var_name": "formDataSerializer" }, { "declarator": "serializationEngine", "mo...
{ "body": "public <R extends RequestBuilder & RequestFilterContext> SerializedRequest process(R request) {\n // 1: FILTER\n filterEngine.filterRequest(request);\n\n // 2: SERIALIZE\n SerializedRequestDelegate serializedRequest;\n Object payload = request.getPayload();\n if (p...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 26403452, "size": 8892, "stargazer_count": 34, "stars": null, "updates": null, "url": "https://github.com/reinert/requestor" }
33053133_4
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "MapperInfoHandler handler;", "type": "MapperInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", "...
{ "body": "@Test\n\tpublic void testConfigureMapperTextText() {\n\t\thandler.configureOutputKeyValue(job, TestMapperTextText.class, null, false);\n\t\tverify(job).setMapOutputKeyClass(Text.class);\n\t\tverify(job).setMapOutputValueClass(NullWritable.class);\n\t\tverify(job, never()).setOutputKeyClass(Text.class);\n\t...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/MapperInfoHandler.java", "identifier": "MapperInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "MapperInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tpublic void configureOutputKeyValue(Job job, Class<? extends Mapper> mapperClass, \n\t\t\tMapperInfo map, boolean isMapOnly) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTyp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_12
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "ReducerInfoHandler handler;", "type": "ReducerInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", ...
{ "body": "@Test\n\tpublic void testConfigureReducerLongText() {\n\t\thandler.configureOutputKeyValue(job, TestReducerLongText.class, null);\n\t\tverify(job).setOutputKeyClass(LongWritable.class);\n\t\tverify(job).setOutputValueClass(Text.class);\n\t}", "class_method_signature": "ReducerInfoHandlerTest.testConfigur...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/ReducerInfoHandler.java", "identifier": "ReducerInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "ReducerInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tprotected void configureOutputKeyValue(Job job, Class<? extends Reducer> reducerClass, ReducerInfo reducer) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTypeParams(reducerCl...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_8
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "MapperInfoHandler handler;", "type": "MapperInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", "...
{ "body": "@Test\n\tpublic void testConfigureMapperNoGenerics() {\n\t\thandler.configureOutputKeyValue(job, TestMapperNoGenericsTest.class, null, false);\n\n\t\tverify(job, never()).setMapOutputKeyClass(any(Class.class));\n\t\tverify(job, never()).setMapOutputValueClass(any(Class.class));\n\t}", "class_method_signa...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/MapperInfoHandler.java", "identifier": "MapperInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "MapperInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tpublic void configureOutputKeyValue(Job job, Class<? extends Mapper> mapperClass, \n\t\t\tMapperInfo map, boolean isMapOnly) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTyp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_9
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "MapperInfoHandler handler;", "type": "MapperInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", "...
{ "body": "@Test\n\tpublic void testConfigureMapperTableMapper() {\n\t\thandler.configureOutputKeyValue(job, TestTableMapper.class, null, false);\n\n\t\tverify(job, times(1)).setMapOutputKeyClass(Text.class);\n\t\tverify(job, times(1)).setMapOutputValueClass(NullWritable.class);\n\t\t\n\t\tverify(job, never()).setOut...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/MapperInfoHandler.java", "identifier": "MapperInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "MapperInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tpublic void configureOutputKeyValue(Job job, Class<? extends Mapper> mapperClass, \n\t\t\tMapperInfo map, boolean isMapOnly) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTyp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_13
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "ReducerInfoHandler handler;", "type": "ReducerInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", ...
{ "body": "@Test\n\tpublic void testConfigureReducerTextText() {\n\t\thandler.configureOutputKeyValue(job, TestReducerTextText.class, null);\n\t\tverify(job).setOutputKeyClass(Text.class);\n\t\tverify(job).setOutputValueClass(Text.class);\n\t}", "class_method_signature": "ReducerInfoHandlerTest.testConfigureReducer...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/ReducerInfoHandler.java", "identifier": "ReducerInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "ReducerInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tprotected void configureOutputKeyValue(Job job, Class<? extends Reducer> reducerClass, ReducerInfo reducer) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTypeParams(reducerCl...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_5
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "MapperInfoHandler handler;", "type": "MapperInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", "...
{ "body": "@Test\n\tpublic void testConfigureMapperTextText_MapOnly() {\n\t\thandler.configureOutputKeyValue(job, TestMapperTextText.class, null, true);\n\t\tverify(job).setMapOutputKeyClass(Text.class);\n\t\tverify(job).setMapOutputValueClass(NullWritable.class);\n\t\tverify(job).setOutputKeyClass(Text.class);\n\t\t...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/MapperInfoHandler.java", "identifier": "MapperInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "MapperInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tpublic void configureOutputKeyValue(Job job, Class<? extends Mapper> mapperClass, \n\t\t\tMapperInfo map, boolean isMapOnly) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTyp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_22
{ "fields": [ { "declarator": "runJob", "modifier": "", "original_string": "RunJob runJob;", "type": "RunJob", "var_name": "runJob" } ], "file": "core/src/test/java/com/conversantmedia/mapreduce/tool/RunJobTest.java", "identifier": "RunJobTest", "interfaces": "", "super...
{ "body": "@Test\n\tpublic void testScanPackages_SystemProperty() {\n\t\tString packages = \"package4,package5,package6\";\n\t\tSystem.setProperty(RunJob.SYSPROP_DRIVER_SCAN_PACKAGES, packages);\n\t\t\n\t\ttry {\n\t\t\tString[] result = RunJob.getBasePackagesToScanForDrivers();\n\t\t\t\n\t\t\tassertNotNull(result);\n...
{ "fields": [ { "declarator": "SYSPROP_DRIVER_SCAN_PACKAGES = \"mara.drivers.packages\"", "modifier": "public static final", "original_string": "public static final String SYSPROP_DRIVER_SCAN_PACKAGES = \"mara.drivers.packages\";", "type": "String", "var_name": "SYSPROP_DRIVER_SCAN_P...
{ "body": "protected static String[] getBasePackagesToScanForDrivers() throws IOException {\n\t\treturn MaraAnnotationUtil.INSTANCE.getBasePackagesToScan(SYSPROP_DRIVER_SCAN_PACKAGES, RESOURCE_DRIVER_SCAN_PACKAGES);\n\t}", "class_method_signature": "RunJob.getBasePackagesToScanForDrivers()", "constructor": false,...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_18
{ "fields": [ { "declarator": "TEST_INPUT = \"INPUT_TABLE\"", "modifier": "private static final", "original_string": "private static final String TEST_INPUT = \"INPUT_TABLE\";", "type": "String", "var_name": "TEST_INPUT" }, { "declarator": "handler", "modifier": "...
{ "body": "@Test\n\tpublic void testProcessCustomScan() {\n\n\t\ttry {\n\t\t\tAnnotation annotation = setupDriver(new TableDriverWithScan());\n\n\t\t\thandler.process(annotation, job, null);\n\n\t\t\tverify(job, times(1)).setInputFormatClass(TableInputFormat.class);\n\t\t\tassertThat(conf.get(TableInputFormat.INPUT_T...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/TableInputAnnotationHandler.java", "identifier": "TableInputAnnotationHandler", "interfaces": "", "methods": [ { "class_method_signature": "TableInputAnnotationHandler.accept(Annotation annotation)", ...
{ "body": "@Override\n\tpublic void process(Annotation annotation, Job job, Object target)\n\t\t\tthrows ToolException {\n\n\t\tTableInput tableInput = (TableInput)annotation;\n\n\t\t// Base setup of the table mapper job\n\t\tConfiguration conf = job.getConfiguration();\n\t\tHBaseConfiguration.merge(conf, HBaseConfig...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_2
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "MapperInfoHandler handler;", "type": "MapperInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", "...
{ "body": "@Test\n\tpublic void testConfigureMapperLongText() {\n\t\thandler.configureOutputKeyValue(job, TestMapperLongText.class, null, false);\n\t\tverify(job).setMapOutputKeyClass(LongWritable.class);\n\t\tverify(job).setMapOutputValueClass(Text.class);\n\t\tverify(job, never()).setOutputKeyClass(LongWritable.cla...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/MapperInfoHandler.java", "identifier": "MapperInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "MapperInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tpublic void configureOutputKeyValue(Job job, Class<? extends Mapper> mapperClass, \n\t\t\tMapperInfo map, boolean isMapOnly) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTyp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_14
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "ReducerInfoHandler handler;", "type": "ReducerInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", ...
{ "body": "@Test\n\tpublic void testConfigureReducerSubclassing() {\n\t\thandler.configureOutputKeyValue(job, TestReducerSubclassTest.class, null);\n\t\tverify(job).setOutputKeyClass(Text.class);\n\t\tverify(job).setOutputValueClass(Text.class);\n\t}", "class_method_signature": "ReducerInfoHandlerTest.testConfigure...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/ReducerInfoHandler.java", "identifier": "ReducerInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "ReducerInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tprotected void configureOutputKeyValue(Job job, Class<? extends Reducer> reducerClass, ReducerInfo reducer) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTypeParams(reducerCl...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_15
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "ReducerInfoHandler handler;", "type": "ReducerInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", ...
{ "body": "@Test\n\tpublic void testConfigureReducerNoGenerics() {\n\t\thandler.configureOutputKeyValue(job, TestReducerNoGenericsTest.class, null);\n\t\tverify(job, never()).setOutputKeyClass(any(Class.class));\n\t\tverify(job, never()).setOutputValueClass(any(Class.class));\n\t}", "class_method_signature": "Reduc...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/ReducerInfoHandler.java", "identifier": "ReducerInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "ReducerInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tprotected void configureOutputKeyValue(Job job, Class<? extends Reducer> reducerClass, ReducerInfo reducer) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTypeParams(reducerCl...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_3
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "MapperInfoHandler handler;", "type": "MapperInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", "...
{ "body": "@Test\n\tpublic void testConfigureMapperLongText_MapOnly() {\n\t\thandler.configureOutputKeyValue(job, TestMapperLongText.class, null, true);\n\t\tverify(job).setOutputKeyClass(LongWritable.class);\n\t\tverify(job).setOutputValueClass(Text.class);\n\t}", "class_method_signature": "MapperInfoHandlerTest.t...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/MapperInfoHandler.java", "identifier": "MapperInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "MapperInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tpublic void configureOutputKeyValue(Job job, Class<? extends Mapper> mapperClass, \n\t\t\tMapperInfo map, boolean isMapOnly) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTyp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_19
{ "fields": [ { "declarator": "TEST_INPUT = \"INPUT_TABLE\"", "modifier": "private static final", "original_string": "private static final String TEST_INPUT = \"INPUT_TABLE\";", "type": "String", "var_name": "TEST_INPUT" }, { "declarator": "handler", "modifier": "...
{ "body": "@Test\n\tpublic void testConditionalName() {\n\t\ttry {\n\t\t\tAnnotation annotation = setupDriver(new TableDriverNameExpr());\n\n\t\t\thandler.process(annotation, job, null);\n\n\t\t\tverify(job, times(1)).setInputFormatClass(TableInputFormat.class);\n\t\t\tassertThat(conf.get(TableInputFormat.INPUT_TABLE...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/TableInputAnnotationHandler.java", "identifier": "TableInputAnnotationHandler", "interfaces": "", "methods": [ { "class_method_signature": "TableInputAnnotationHandler.accept(Annotation annotation)", ...
{ "body": "@Override\n\tpublic void process(Annotation annotation, Job job, Object target)\n\t\t\tthrows ToolException {\n\n\t\tTableInput tableInput = (TableInput)annotation;\n\n\t\t// Base setup of the table mapper job\n\t\tConfiguration conf = job.getConfiguration();\n\t\tHBaseConfiguration.merge(conf, HBaseConfig...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_23
{ "fields": [ { "declarator": "runJob", "modifier": "", "original_string": "RunJob runJob;", "type": "RunJob", "var_name": "runJob" } ], "file": "core/src/test/java/com/conversantmedia/mapreduce/tool/RunJobTest.java", "identifier": "RunJobTest", "interfaces": "", "super...
{ "body": "@Test @SuppressWarnings({\"unchecked\"})\n\tpublic void testOutputDrivers() {\n\n\t\tMap<String, DriverMeta> drivers = new HashMap<>();\n\t\t// To avoid vararg null warnings...\n\t\tClass<? extends ToolListener<?>> nullListener = null;\n\t\tdrivers.put(\"driverB\", new DriverMeta(\"driverA\",\n\t\t\t\t\"sh...
{ "fields": [ { "declarator": "SYSPROP_DRIVER_SCAN_PACKAGES = \"mara.drivers.packages\"", "modifier": "public static final", "original_string": "public static final String SYSPROP_DRIVER_SCAN_PACKAGES = \"mara.drivers.packages\";", "type": "String", "var_name": "SYSPROP_DRIVER_SCAN_P...
{ "body": "protected static void outputDriversTable(Map<String, DriverMeta> driversMap) {\n\n\t\tString[] colNames = new String[] {\"Name\",\"Description\",\"Ver\",\"Class\"};\n\t\tString[] aligns = new String[] {\"-\",\"-\",\"-\",\"-\"};\n\t\tint maxDescriptionWidth = 48;\n\t\tint widths[] = new int[colNames.length]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_20
{ "fields": [], "file": "core/src/test/java/com/conversantmedia/mapreduce/tool/DistributedResourceManagerTest.java", "identifier": "DistributedResourceManagerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testSetFieldValue() {\n\n\t\tObject bean = new TargetBean();\n\n\n\t\tMap<String, String> fieldVals = new HashMap<>();\n\t\tfieldVals.put(\"b\",\"true\");\n\t\tfieldVals.put(\"c\",\"a\");\n\t\tfieldVals.put(\"i\",\"475\");\n\t\tfieldVals.put(\"s\",\"25\");\n\t\tfieldVals.put(\"f\",\"99...
{ "fields": [ { "declarator": "VALUE_SEP = \"|\"", "modifier": "public static final", "original_string": "public static final String VALUE_SEP = \"|\";", "type": "String", "var_name": "VALUE_SEP" }, { "declarator": "CONFIGKEYBASE_RESOURCE =\n\t\t\tDistributedResourceMan...
{ "body": "public static void setFieldValue(Field field, Object bean, Object value)\n\t\t\tthrows IllegalAccessException {\n\t\t// Set it on the field\n\t\tfield.setAccessible(true);\n\n\t\t// Perform type conversion if possible..\n\t\tSimpleTypeConverter converter = new SimpleTypeConverter();\n\t\ttry {\n\t\t\tvalue...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_16
{ "fields": [ { "declarator": "TEST_INPUT = \"INPUT_TABLE\"", "modifier": "private static final", "original_string": "private static final String TEST_INPUT = \"INPUT_TABLE\";", "type": "String", "var_name": "TEST_INPUT" }, { "declarator": "handler", "modifier": "...
{ "body": "@Test\n\tpublic void testProcessDefaults() {\n\n\t\ttry {\n\t\t\tAnnotation annotation = setupDriver(new TableDriverDefaults());\n\n\t\t\thandler.process(annotation, job, null);\n\n\t\t\tverify(job, times(1)).setInputFormatClass(TableInputFormat.class);\n\t\t\tassertThat(conf.get(TableInputFormat.INPUT_TAB...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/TableInputAnnotationHandler.java", "identifier": "TableInputAnnotationHandler", "interfaces": "", "methods": [ { "class_method_signature": "TableInputAnnotationHandler.accept(Annotation annotation)", ...
{ "body": "@Override\n\tpublic void process(Annotation annotation, Job job, Object target)\n\t\t\tthrows ToolException {\n\n\t\tTableInput tableInput = (TableInput)annotation;\n\n\t\t// Base setup of the table mapper job\n\t\tConfiguration conf = job.getConfiguration();\n\t\tHBaseConfiguration.merge(conf, HBaseConfig...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }
33053133_0
{ "fields": [ { "declarator": "handler", "modifier": "", "original_string": "MapperInfoHandler handler;", "type": "MapperInfoHandler", "var_name": "handler" }, { "declarator": "job", "modifier": "", "original_string": "Job job;", "type": "Job", "...
{ "body": "@Test\n\tpublic void testConfigureMapperIntText() {\n\t\thandler.configureOutputKeyValue(job, TestMapperIntText.class, null, false);\n\t\tverify(job).setMapOutputKeyClass(IntWritable.class);\n\t\tverify(job).setMapOutputValueClass(Text.class);\n\t\tverify(job, never()).setOutputKeyClass(IntWritable.class);...
{ "fields": [], "file": "core/src/main/java/com/conversantmedia/mapreduce/tool/annotation/handler/MapperInfoHandler.java", "identifier": "MapperInfoHandler", "interfaces": "", "methods": [ { "class_method_signature": "MapperInfoHandler.accept(Annotation annotation)", "constructor": false, ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n\tpublic void configureOutputKeyValue(Job job, Class<? extends Mapper> mapperClass, \n\t\t\tMapperInfo map, boolean isMapOnly) {\n\t\tMaraAnnotationUtil util = MaraAnnotationUtil.INSTANCE;\n\t\t// Try and work it out from the generics\n\t\tType[] params = util.getGenericTyp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 33053133, "size": 3662, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/conversant/mara" }