←Older revision | Revision as of 08:50, 23 March 2009 | ||
Line 90: | Line 90: | ||
tests to access package private classes. | tests to access package private classes. | ||
- | + | [[Category:APITypes]] | |
- | + |
←Older revision | Revision as of 08:50, 23 March 2009 | ||
Line 90: | Line 90: | ||
tests to access package private classes. | tests to access package private classes. | ||
- | + | [[Category:APITypes]] | |
- | + |
Test Dependencies
←Older revision | Revision as of 16:51, 23 February 2009 | ||
Line 89: | Line 89: | ||
by placing the tests and the tested code into the same package and allowing the | by placing the tests and the tested code into the same package and allowing the | ||
tests to access package private classes. | tests to access package private classes. | ||
+ | |||
+ | |||
+ | <comments/> |
Test Dependencies
←Older revision | Revision as of 16:38, 23 February 2009 | ||
Line 69: | Line 69: | ||
== Test Dependencies == | == Test Dependencies == | ||
- | Independent, yet important, category of dependencies are dependencies of tests. | + | Independent, yet important, category of [[dependencies]] are [[dependencies]] of tests. |
If we accept the [[XP]] approach that tests shall accompany each code, it might seem | If we accept the [[XP]] approach that tests shall accompany each code, it might seem | ||
that the tests are so closely related to the code, that they shall have the | that the tests are so closely related to the code, that they shall have the | ||
- | same dependencies as the code. But surprisingly, this is not usually true. | + | same [[dependencies]] as the code. But surprisingly, this is not usually true. |
If an API wants to support its own testability, and I argued in Chapter 9, | If an API wants to support its own testability, and I argued in Chapter 9, | ||
- | [[Keep Testability | + | [[Keep Testability In Mind]] why it should, then the most common approach is |
to provide a support for creation of [[Mock Object]]s. However this extra classes | to provide a support for creation of [[Mock Object]]s. However this extra classes | ||
or utility methods are unlikely to be in the [[API]] itself, they need to be | or utility methods are unlikely to be in the [[API]] itself, they need to be |
Linkage Dependencies
←Older revision | Revision as of 16:37, 23 February 2009 | ||
Line 43: | Line 43: | ||
This includes loading the system in and resolving all external symbols during linkage | This includes loading the system in and resolving all external symbols during linkage | ||
time. This usually implies that all libraries needed during compilation are also | time. This usually implies that all libraries needed during compilation are also | ||
- | needed during the linkage. Yet, this is not necessarily true. Many systems support | + | needed during the linkage. Yet, this is not necessarily true. Many systems support ''optional'' dependencies. E.g. dependencies that may be satisfied, but does |
- | + | ||
not need to be. In such case there can be a library needed during compile time, | not need to be. In such case there can be a library needed during compile time, | ||
yet if it is missing the system can run without it. If this is the case the | yet if it is missing the system can run without it. If this is the case the |
New page: When someone depends on someone else, it means that there is an action, activity which one can only do with help of that other person. This does not mean one relies on the other person in ...
New page