This file contains hidden or 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
| ObjectMapper mapper = new ObjectMapper(); | |
| mapper.getDeserializationConfig().without(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES); |
This file contains hidden or 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
| // Requires Google Guava 10 or greater | |
| Cache<Key, Graph> graphs = CacheBuilder.newBuilder() | |
| .concurrencyLevel(4) | |
| .weakKeys() | |
| .maximumSize(10000) | |
| .expireAfterWrite(10, TimeUnit.MINUTES) | |
| .build( | |
| new CacheLoader<Key, Graph>() { | |
| public Graph load(Key key) throws AnyException { |
This file contains hidden or 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
| Protocol easyhttps = new Protocol("https", (ProtocolSocketFactory)new EasySSLProtocolSocketFactory(), 443); | |
| Protocol.registerProtocol("https", easyhttps); | |
| HttpClient client = new HttpClient(); | |
| HostConfiguration config = client.getHostConfiguration(); | |
| config.setProxy("localhost", 8888); |
This file contains hidden or 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
| #if (${PACKAGE_NAME} == "" )package ${PACKAGE_NAME} | |
| #end | |
| import org.scalatest.Assertions | |
| import org.scalatest.mock.MockitoSugar | |
| import org.testng.annotations.Test | |
| import org.scalatest.Assertions | |
| import org.scalatest.mock.MockitoSugar | |
| import org.testng.Assert._ |
This file contains hidden or 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
| ssh-keygen -t rsa -b 4096 -C "email@email.com" |
NewerOlder