You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I treat name.abuchen.portfolio.junit as a package for helpers related to testing. (In that regard, I'm not sure why BookmarkTest.java , a lone test, lives there? Is that kinda to be able to build and run name.abuchen.portfolio.junit in "executable" form, or is it just misplaced and should be moved to name.abuchen.portfolio.tests?)
I'd like to add more convenience methods, in particular, to easier mock LocalDate.now(). Well, I can't, because name.abuchen.portfolio.junit doesn't have dependency on Mockito, and due to weirdnes high-level nature of Maven, I can't see how to add it. Nowhere (in *.junit vs *.tests) does Mockito mentioned explicitly, the only test-related difference I could easily see between the 2 packages is:
, but adding that <attribute name="test" value="true"/> to .junit doesn't help with the issue.
So, could suggest how to add that dependency (w/o Eclipse IDE), or could you add it yourself, or would it otherwise be ok to add helper classes to .tests? (But then it would be all over the place, with tests and helpers randomly spread between 2 packages).
public class TestHelper
{
private TestHelper()
{}
public static MockedStatic<LocalDate> mockLocalDateNow(String isoDate)
The text was updated successfully, but these errors were encountered:
@buchen :
I treat name.abuchen.portfolio.junit as a package for helpers related to testing. (In that regard, I'm not sure why BookmarkTest.java , a lone test, lives there? Is that kinda to be able to build and run name.abuchen.portfolio.junit in "executable" form, or is it just misplaced and should be moved to name.abuchen.portfolio.tests?)
I'd like to add more convenience methods, in particular, to easier mock LocalDate.now(). Well, I can't, because name.abuchen.portfolio.junit doesn't have dependency on Mockito, and due to
weirdneshigh-level nature of Maven, I can't see how to add it. Nowhere (in*.junit
vs*.tests
) does Mockito mentioned explicitly, the only test-related difference I could easily see between the 2 packages is:, but adding that
<attribute name="test" value="true"/>
to .junit doesn't help with the issue.So, could suggest how to add that dependency (w/o Eclipse IDE), or could you add it yourself, or would it otherwise be ok to add helper classes to .tests? (But then it would be all over the place, with tests and helpers randomly spread between 2 packages).
The text was updated successfully, but these errors were encountered: