java - hamcrest core, why need this? -
i using junit tdd in java , noticed there 2 components download junit.org. first of all, thought need junit component , downloaded, installed. when compiled , tried run test, complaining hamcrest classes not found. had download 1 again homepage.
so, out of curiosity, why heck need 2 downloads 1 purpose usage beginning? know why hamcrest core separate junit, though used junit?
thanks, javabug
junit uses hamcrest. in past junit embedding hamcrest classes lead problems, projects evolving in different cycles. in recent junit versions (if i'm not wrong, since 4.11) has been changed , hamcrest not embedded. if add junit dependency project (maven, gradle, etc) implicit dependency hamcrest.
i believe issue on hamcrest somehow related splitting. https://github.com/hamcrest/javahamcrest/issues/92
Comments
Post a Comment