public class
RunOnceRunner extends DefaultConcordionRunner {
private static Map<Resource,RunnerResult> alreadyRun =
new HashMap<Resource,RunnerResult>();
/**
* Executes the super <code>execute(Resource,
String)<code> method and caches the
* results so that, on subsequent invocations, the results are
retrieved from the
* cache rather
than needing to be rerun.
*/
public RunnerResult execute(Resource resource, String href)
throws Exception {
Resource hrefResource = resource.getParent().getRelativeResource(href);
RunnerResult result = alreadyRun.get(hrefResource);
if (result == null){
result = super.execute(resource, href);
alreadyRun.put(hrefResource, result);
}
return result;
}
}
--
You received this message because you are subscribed to the Google Groups "concordion-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concordion-de...@googlegroups.com.
To post to this group, send email to concord...@googlegroups.com.
Visit this group at http://groups.google.com/group/concordion-dev.
To view this discussion on the web, visit https://groups.google.com/d/msgid/concordion-dev/CAJifTyqLuBqk%3DFTx5T_uGSB4Gw9sbg4H7Jwqk3Wse8jSPtrDFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
User createUserWithCardType(String type) {Will something like that work for you?
return new UserBuilder().withCard(type).build();
}
Nigel, hello!Sorry, i was on holiday last month.
Yes, you've understood the issue correctly.
I have one test (test1.md e.g.) and two more tests (test21.md and test 31.md) that invoke test1.md as first step. test1.md creates some identity. And test21 and test31 need such identities but that should be different identities for every test.So i want to disable the caching mechanism or to find another effective solution.
Thank you!
On Sat, Jul 29, 2017 at 2:04 AM, Nigel Charman <nigel.ch...@gmail.com> wrote:
Hi
As I understand it you have a fixture that you want to be invoked multiple times, but due to the caching mechanism it will only be executed once. Is that correct?
Would you please explain your use case a bit more so we can understand it, and potentially offer alternate solutions?
thanks
To unsubscribe from this group and stop receiving emails from it, send an email to concordion-dev+unsubscribe@googlegroups.com.
To post to this group, send email to concordion-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/concordion-dev.
To view this discussion on the web, visit https://groups.google.com/d/msgid/concordion-dev/b803dd9b-0e6e-4cad-986b-b043f5a0f8ed%40googlegroups.com.