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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -