- 博客(9)
- 收藏
- 关注
原创 Poller
@SuppressWarnings("UnusedDeclaration")public class Poller { public static long seconds(int seconds) { return seconds * 1000; } public static long milliseconds(int milli...
2016-12-02 14:17:48
214
原创 Probe
public interface Probe { boolean isSatisfied(); String describeFailure();}
2016-12-02 14:16:53
148
原创 PollingMatcherAssert
import com.google.common.base.Throwables;public class PollingMatcherAssert implements Probe { private final Matchers matchers; public PollingMatcherAssert(Matchers matchers) { ...
2016-12-02 14:14:38
110
原创 pom template
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org
2016-11-07 18:11:23
161
原创 FIX message printer
import org.slf4j.Logger;import quickfix.DataDictionary;import quickfix.Field;import quickfix.FieldMap;import quickfix.FieldNotFound;import quickfix.FieldType;import quickfix.Group;impo...
2016-11-03 13:56:13
234
原创 SandboxFolder
import java.io.File;import java.io.FileWriter;import java.io.IOException;import java.util.UUID;public class SandboxFolder extends ExternalResource { private static final String TESTING_...
2016-10-25 16:03:26
98
原创 Use InstallCert
编译InstallCert.java,然后执行:java InstallCert hostname,比如:java InstallCert www.twitter.com会看到如下信息:java InstallCert www.twitter.comLoading KeyStore /usr/java/jdk1.6.0_16/jre/lib/security/cacerts......
2016-10-20 15:07:03
423
原创 InstallCert
/* * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
2016-10-20 15:06:45
1435
1
原创 jetty with resteasy http/https
import com.google.inject.Inject;import com.google.inject.Injector;import org.eclipse.jetty.http.HttpVersion;import org.eclipse.jetty.security.ConstraintMapping;import org.eclipse.jetty.securit...
2016-10-18 12:08:45
198
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人