Reference implementation.
Official documentation:
- Wikibook (incomplete)
Specific topics:
Background:
>>>ITwacht<<<
Reference implementation.
Official documentation:
class Japavapa implements Callable, ManagedTask, ManagedTaskListener {
String word;
LocalTime submit;
public Japavapa(String word) {
this.word = word;
}
public String toString() {
return ":P " + word;
}
@Override
public String call() throws Exception {
Random rand = new Random();
Thread.currentThread().sleep(rand.nextInt(1000));
Matcher match = Pattern.compile("([AEIOUYaeiouy]+)").matcher(word);
return match.find() ? match.replaceAll(match.group(1) + "p" + match.group(1)) : word;
}
@Override
public ManagedTaskListener getManagedTaskListener() {
return this;
}
@Override
public Map<String, String> getExecutionProperties() {
return null;
}
@Override
public void taskSubmitted(Future<?> future, ManagedExecutorService executor, Object task) {
submit = LocalTime.now();
logger.info("SUBMIT " + task
+ " AT " + submit
+ " ON " + executor);
}
@Override
public void taskAborted(Future<?> future, ManagedExecutorService executor, Object task, Throwable exception) {
logger.info("ABORTED " + task
+ " AFTER " + Duration.between(submit, LocalTime.now()).toMillis()
+ "ms ON " + Thread.currentThread().getName());
}
@Override
public void taskDone(Future<?> future, ManagedExecutorService executor, Object task, Throwable exception) {
logger.info("DONE " + task
+ " AFTER " + Duration.between(submit, LocalTime.now()).toMillis() + "ms");
}
@Override
public void taskStarting(Future<?> future, ManagedExecutorService executor, Object task) {
logger.info("STARTING " + task
+ " AFTER " + Duration.between(submit, LocalTime.now()).toMillis()
+ "ms ON " + Thread.currentThread().getName());
}
}
If you are testing XML documents without namesapces, and you assert them with XPath expressions without namespaces, your XPath expressions (e.g. '//my-stuff') will not match.
An easy trick to make this work, is to add '*:' (wildcard) namespace in front of your elements (e.g. '*://my-stuff')
I installed SoapUI open source 5.2.1 on windows10 from the (default) windows 64 bit installer.
This installation considers C:\WINDOWS\system32\config\systemprofile as the home directory and insists on keeping his config there. Probably because it asks system administrators priviliges while installing and then derives the home directory from the system administor settings. When running SoapUI as your humble self afterwards and try to change any preferences you get
java.io.FileNotFoundException: C:\WINDOWS\system32\config\systemprofile\soapui-settings.xml (Access is denied)Uninstall and reinstall from the zip installer (from alternate platforms downloads). That one works from your user home directory as it should.
To use the Glassfish JAXB RI instead of the default Eclipse MOXy implementation in Weblogic 12.1.1 add this to the beginning of your %DOMAIN_HOME%\bin\setDomainEnv.cmd. %MW_HOME% is set to the installation location of WebLogic.
if NOT "%PRE_CLASSPATH%"=="" (set PRE_CLASSPATH=;%PRE_CLASSPATH%)
set PRE_CLASSPATH=%MW_HOME%\modules\databinding.override_1.0.0.0.jar%PRE_CLASSPATH%
On Weblogic 12.2.1 you should use WL_HOME (=%MW_HOME%\wlserver) instead of MW_HOME.