// If want to use chain method calls then use 'RETURNS_DEEP_STUBS' property
import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
Foo foo = mock(Foo.class, RETURNS_DEEP_STUBS);
@Mock (answer = Answers.RETURNS_DEEP_STUBS)
private Foo foo;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm info install [email protected] | |
npm info postinstall [email protected] | |
npm info install [email protected] | |
npm info [email protected] Failed to exec install script | |
> [email protected] install /tmp/hub_node_modules/node_modules/exec-sync/node_modules/ffi/node_modules/ref | |
> node-gyp rebuild | |
gyp info it worked if it ends with ok | |
gyp verb cli [ 'node', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/examples/extracter.js | |
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/examples/packer.js | |
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/examples/reader.js | |
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/lib/buffer-entry.js | |
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/lib/entry-writer.js | |
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/lib/entry.js | |
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/lib/extended-header-writer.js | |
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/lib/extended-header.js | |
npm sill gunzTarPerm extractEntry node_modules/node-pre-gyp/node_m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bash shell script for generating self-signed certs. Run this in a folder, as it | |
# generates a few files. Large portions of this script were taken from the | |
# following artcile: | |
# | |
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html | |
# | |
# Additional alterations by: Brad Landers | |
# Date: 2012-01-27 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Password Generator | |
* | |
* @author Shaun Thomas | |
* | |
* Objective | |
* -- | |
* \_ Generate 12 character length password from domain name | |
* \_ Re-creatable by hand without much complexity | |
* \_ Password has decent level of randomness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// int Array initialization | |
int[] intArray = {1,2,3}; | |
// String Array initialization | |
String[] stringArray = {"a","b","c"}; | |
// Load resources class | |
File file = new File(getClass().getClassLoader().getResource(jobFileName).getFile()); | |
// Best datatype for saving date & time - Java 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// XPath CheatSheet | |
// To test XPath in your Chrome Debugger: $x('/html/body') | |
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
// 0. XPath Examples. | |
// More: http://xpath.alephzarro.com/content/cheatsheet.html | |
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-11-28 16:05:53.010 INFO [api-gateway,,,] 1 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8090 (http) | |
2017-11-28 16:05:53.011 INFO [api-gateway,,,] 1 --- [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8090 | |
2017-11-28 16:05:53.015 INFO [api-gateway,,,] 1 --- [ main] n.i.s.gateway.GatewayApplication : Started GatewayApplication in 154.872 seconds (JVM running for 155.846) | |
2017-11-28 16:09:42.305 INFO [api-gateway,,,] 1 --- [nio-8090-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet' | |
2017-11-28 16:09:42.306 INFO [api-gateway,,,] 1 --- [nio-8090-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started | |
2017-11-28 16:09:42.412 INFO [api-gateway,,,] 1 --- [nio-8090-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 106 ms | |
2017-11-28 16:09 |
OlderNewer