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
@Service | |
@RemotingDestination | |
public class RemoteObjectLogger { | |
private static final String PRE_FLEX = "[FLEX] "; | |
protected final Log logger = LogFactory.getLog(getClass()); | |
@RemotingInclude | |
public void log(String level, String message) { | |
if ("INFO".equals(level)) logger.info(PRE_FLEX + message); | |
else if ("DEBUG".equals(level)) logger.debug(PRE_FLEX + message); |
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
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "usage: smoketest.sh <url>" | |
exit 1 | |
fi | |
status=`curl --silent --head $1 | head -1 | cut -f 2 -d' '` |
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
@Test | |
public void skal_hente_alle_tenant_profiler() { | |
Gitt.at_tenant_profile_eksisterer(new TenantProfile(1, "Single")) | |
Gitt.at_tenant_profile_eksisterer([id:2, description:"Dubletter"]) | |
Gitt.at_tenant_profile_eksisterer(new TenantProfile(id:3, description:"Tribletter")) | |
Naar.jeg_henter_informasjon_om_soknadslista() | |
Saa.skal_antallet_tenant_profiler_vaere(3) | |
} | |
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_branches() | |
{ | |
local cur | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
CURRENT=`git branch | grep '^*' | awk '{print $2}'` | |
local versions=$(git branch | grep -v $CURRENT) | |
COMPREPLY=($(compgen -W "${versions}" $cur)) | |
} | |
complete -F _git_branches ship |
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
require 'rubygems' | |
require 'spec' | |
require 'funfx/browser/firewatir' | |
BROWSER = FireWatir::Firefox.new | |
DEMO_APP = "location_of_application.html" | |
Before do | |
BROWSER.goto(DEMO_APP) |
NewerOlder