The test execution time which is displayed in eclipse->junit-view depends on the whole test case execution which includes:
- Testdata preperation
- Executing businesslogic
- assert results
I need a more detailed statement about the execution time of my businesslogic and only my businesslogic. That is what I have done inside my testcase:
Date lNow = new Date();
List<Geo> lAllBasisGeo = mGeoEvaluator.evaluateAllGeo(lGeoFixture.getGeo(), lAllGeo);
Date lStop = new Date();
System.out.println("Time of execution in seconds:"+((lStop.getTime()-lNow.getTime())/1000));
Well... I think I determine the time in a realy awkward way. Furthermore I dont think that it is necessary to declare two Date variables.
I need advice writing that code more efficiently...