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
// start multiple jetties before test | |
// | |
// useful for parallel web end-to-end testing | |
// | |
import org.gradle.api.plugins.jetty.JettyRun | |
apply plugin: 'java' | |
apply plugin: 'jetty' | |
repositories { |
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
// Run Jetty on dependency resolved war file | |
// | |
// you can run multiple wars with different configuration by | |
// adding more task definitions. | |
// | |
import org.gradle.api.plugins.jetty.JettyRunWar | |
apply plugin: 'java' | |
apply plugin: 'jetty' |
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
/** | |
* Factory bean to generate list of HandlerMappings and MappedHandlers. | |
* | |
* MappedHandlers can be specified by url path to interceptors. | |
* | |
*/ | |
public class HandlerInterceptorsFactory extends AbstractFactoryBean<List<Object>> { | |
private List<HandlerInterceptor> handlerInterceptors = new ArrayList<HandlerInterceptor>(); |
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
public class TestNGUtils { | |
private static final String LINE_SEPARATOR = System.getProperty("line.separator"); | |
public static void runAndVerify(Class<?>... testClasses) { | |
if (ObjectUtils.isEmpty(testClasses)) { | |
throw new AssertionError("no test class specified."); | |
} |
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
#! /usr/bin/env python | |
import argparse | |
import os | |
import sys | |
import boto.ec2 | |
def parse_args(): |
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
<dependency> | |
<groupId>net.ttddyy</groupId> | |
<artifactId>datasource-proxy</artifactId> | |
<version>1.2</version> | |
</dependency> |
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
<dependency> | |
<groupId>net.ttddyy</groupId> | |
<artifactId>datasource-proxy</artifactId> | |
<version>1.3</version> | |
</dependency> |
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
package org.springframework.test.context.junit5; | |
import org.junit.gen5.console.ColoredPrintingTestListener; | |
import org.junit.gen5.engine.TestPlanSpecification; | |
import org.junit.gen5.launcher.Launcher; | |
import org.junit.gen5.launcher.listeners.SummaryCreatingTestListener; | |
import org.junit.gen5.launcher.listeners.TestExecutionSummary; | |
import java.io.PrintWriter; |
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
package net.ttddyy.dsproxy.example; | |
import net.ttddyy.dsproxy.ExecutionInfo; | |
import net.ttddyy.dsproxy.QueryInfo; | |
import net.ttddyy.dsproxy.listener.QueryExecutionListener; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.List; | |
import java.util.concurrent.ScheduledExecutorService; |
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/sh -xe | |
# Prepare release for xenon | |
# - create a branch "prepare-release-${RELEASE_VERSION}" | |
# - update CHANGELOG.md versions | |
# - update pom versions | |
# - create local commits for release and next dev versions | |
# | |
# TODO: change to receive args and validate | |
# |
OlderNewer