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
import org.mockito.internal.util.MockUtil; | |
import org.springframework.beans.BeansException; | |
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter; | |
/** | |
* Do not process wiring for mock which contains @Autowired / @inject annotations | |
*/ | |
public class MockBeanFactory extends InstantiationAwareBeanPostProcessorAdapter { | |
private static final MockUtil mockUtil = new MockUtil(); |
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
public class TestWicket { | |
WicketTester tester = new WicketTester(); | |
@BeforeMethod | |
public void setUp() throws Exception { | |
tester = new WicketTester(); | |
} | |
@AfterMethod |
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
crontab -l | |
@reboot inoticoming --logfile /var/www/depot/logs/inoticoming-snapshot.log /var/www/depot/snapshot/binary --stderr-to-log --stdout-to-log --suffix '.changes' /usr/local/bin/update-apt-upload.sh /var/www/depot/snapshot \; | |
@reboot inoticoming --logfile /var/www/depot/logs/inoticoming-release.log /var/www/depot/release/binary --stderr-to-log --stdout-to-log --suffix '.changes' /usr/local/bin/update-apt-upload.sh /var/www/depot/release \; | |
cat /usr/local/bin/update-apt-upload.sh | |
#!/bin/sh | |
REPO_DIR=$1 |
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
mvn clean install '-P!CommercialDBJars,!MediumTests' |
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
mvn clean test -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE" |
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
### Pre step / Execute Shell | |
# Remove the snapshot from the project version | |
project_version=`xpath -q -e "/project/version/text()" pom.xml` | |
mvn versions:set -DnewVersion=${project_version%-SNAPSHOT}-build.${BUILD_NUMBER} | |
### Build | |
clean deploy -Pintegration,release -Denvironment=int -Dpackage-deb=true -Dinstall-deb=true |
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
git clone [email protected]:flyway/flyway.git | |
cd flyway | |
# move into another folder with rewriting the history | |
git filter-branch -f --prune-empty --tree-filter 'mkdir -p .root;mv * .root;mv .root root' -- --all | |
git clone [email protected]:regis-leray/flyway.git regis-flyway | |
cd regis-flyway/ | |
git remote add origin-flyway ../flyway | |
git fetch origin-flyway |
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
########################################################################## JQuery | |
Jquery + google maps | |
http://www.webgo.fr/2011/08/google-maps-geocode-jquery-ui-autocomplete/ | |
Jquery tooltip | |
http://vadikom.com/demos/poshytip/ | |
Jquery select |
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
Maven 3.0 | |
http://www.sonatype.com/people/2009/08/create-a-customized-build-process-in-maven/ | |
deploy | |
http://maven.apache.org/pom.html#Distribution_Management | |
http://jlorenzen.blogspot.com/2007/09/how-to-effectively-use-snapshot.html | |
classifier | |
http://geekzguru.wordpress.com/2008/02/16/maven-tag/ |
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
CSS/VERTICAL ALIGN | |
http://forum.alsacreations.com/topic.php?fid=4&tid=664&p=1 | |
http://www.loriswebs.com/html-tips/verticallyalignimages.html | |
http://forum.alsacreations.com/topic.php?fid=4&tid=35#copy | |
http://openweb.eu.org/articles/initiation_flux/ | |
CSS/FLOAT |