Die Suche ergab 80 Treffer

von #14
7. Aug 2012 10:50
Forum: Archiv
Thema: [mockito] slides ex08_discussion
Antworten: 1
Zugriffe: 345

[mockito] slides ex08_discussion

slides ex08_discussion number 54:
what is the advantage of using a mock gradewriter instead of a normal gradewriter?
wouldn't i be interested in testing the explicit subclasses?
von #14
2. Jul 2012 16:29
Forum: Archiv
Thema: ex09 task 3b
Antworten: 14
Zugriffe: 1053

Re: ex09 task 3b

well... i'm guessing i need something like this:

Code: Alles auswählen

after(Shape shape) returning: shapeChange(shape)
                                     && !cflowbelow(shapeChange()) {
               Display.update(shape);
}
von #14
2. Jul 2012 15:59
Forum: Archiv
Thema: ex09 task 3b
Antworten: 14
Zugriffe: 1053

Re: ex09 task 3b

it maps the internal method calling sequences of the nested call?
von #14
2. Jul 2012 14:58
Forum: Archiv
Thema: ex09 task 3b
Antworten: 14
Zugriffe: 1053

Re: ex09 task 3b

Try it with a different approach... When you are looking for good pointcuts, think about the execution in terms of a stack trace. Every control flow is just a list of called methods in this case. i am totally aware of that. is it possible to distinguish between an initial function call and subseque...
von #14
2. Jul 2012 13:56
Forum: Archiv
Thema: ex09 task 3b
Antworten: 14
Zugriffe: 1053

Re: ex09 task 3b

i just found this

thisJoinPoint.getSourceLocation()

maybe it will help.

i'm still open for hints and suggestions...
von #14
2. Jul 2012 13:53
Forum: Archiv
Thema: ex09 task 3b
Antworten: 14
Zugriffe: 1053

Re: ex09 task 3b

if startup_calculator contains nothing but fibonacci.run(2); the output is supposed to be solely RuntimeDataCollector: a call to Fibonacci RuntimeDataCollector: ... is recursive correct? in order to do that i need to be able to tell whether the method call was made from startup_calculator or from fi...
von #14
2. Jul 2012 13:21
Forum: Archiv
Thema: ex09 task 3b
Antworten: 14
Zugriffe: 1053

Re: ex09 task 3b

well... aspectJ is obviously new to me, so i'm trying to familiarize myself with all the options (syntax) aspectJ has to offer and which of those might be able to help me solve the task. the little information that can be found online seems not to be very helpful for me either. one of my many questi...
von #14
2. Jul 2012 12:55
Forum: Archiv
Thema: ex09 task 3b
Antworten: 14
Zugriffe: 1053

ex09 task 3b

sorry to bother again. can i please get more information about the second hint in the task and about how it is supposed to help me. "Hint: By default only one instance of an aspect is instantiated per virtual machine. As covered in the lecture, you can change this with aspect associations (perthis, ...
von #14
1. Jul 2012 16:54
Forum: Archiv
Thema: AspectJ in General - Pointcuts and Return Values
Antworten: 2
Zugriffe: 402

Re: AspectJ in General - Pointcuts and Return Values

thanks. sometimes the obvious is too easy...
von #14
1. Jul 2012 16:25
Forum: Archiv
Thema: AspectJ in General - Pointcuts and Return Values
Antworten: 2
Zugriffe: 402

AspectJ in General - Pointcuts and Return Values

consider the following pointcut: pointcut p1(Object f, int i): target(f) && args(i) && execution(int Object.doSomething(*)); in the advise that follows this pointcut i can work with the object i call the soSomething() method on and also with the parameter that is given to the doSomething() method, s...
von #14
29. Jun 2012 19:20
Forum: Archiv
Thema: Ex 09 2c)
Antworten: 4
Zugriffe: 460

Re: Ex 09 2c)

*obsolete*
von #14
18. Jun 2012 09:47
Forum: Archiv
Thema: Ex07 Task 3
Antworten: 4
Zugriffe: 374

Re: Ex07 Task 3

please explain a little more about what is meant by "provide at least one test case that reflects the work flow of an order".

thanks.
von #14
18. Jun 2012 09:38
Forum: Archiv
Thema: Ex07 Task 3
Antworten: 4
Zugriffe: 374

Ex07 Task 3

"It can be combined with additional toppings (ham, onions, etc.) that can also be ordered multiple times ("double cheese")."

is it just possible to order single and double toppings or also tripple, quadruple, aso... speaking: as many times as the customer wants?
von #14
16. Jun 2012 08:49
Forum: Archiv
Thema: SVN Login Problems
Antworten: 7
Zugriffe: 658

SVN Login Problems

I'm not allowed to view or work on the exercise in svn anymore because apparently i have no rights. am i the only one with this problem?
von #14
9. Jun 2012 15:50
Forum: Archiv
Thema: Ex 06 Task 1
Antworten: 14
Zugriffe: 1017

Re: Ex 06 Task 1

i've been trying to solve this without any abstract methods for pretty printing or optimizing in the base classes and also without any type casting in the extension.. is that actually possible?

Zur erweiterten Suche