dittert / junit-support Goto Github PK
View Code? Open in Web Editor NEWA library of additional hamcrest matchers
License: BSD 3-Clause "New" or "Revised" License
A library of additional hamcrest matchers
License: BSD 3-Clause "New" or "Revised" License
sameContentAs(File other, boolean recurse)
sameContentAs(Path other, boolean recurse)
sameContentAs(File other, CompareMode... mode)
sameContentAs(Path other, CompareMode... mode)
with CompareMode = {RECURSIVE, CHECK_NAMES, CHECK_TIMES, CHECK_OWNER}
As a developer I'd like to check if a directory contains a single directory because some code under test should only create one file.
As a developer I'd like my TemporaryFolders to contain a certain string in their name so that I can distinguish them if I have multiple of them.
As a developer I'd like to check if a directory contains a bunch of named files because some code under test creates them.
containingFile(String... name)
containingDir(String... name)
containingOnlyFile(String... name)
containingOnlyDir(String... name)
As a developer I'd like to check if a directory contains a file with a specific contents because some code under test should create that.
containsSameFile(String contents)
containsSameFile(File expected)
containsSameFile(Path expected)
As a developer I'd like to check if a directory contains the same files/directories as some other directory because some code under test creates that structure. This matcher should only check for the names/types of files and not file contents.
sameFileAs(File other)
sameFileAs(Path other)
sameFileAs(File other, boolean recurse)
sameFileAs(Path other, boolean recurse)
sameFileAs(File other, CompareMode... mode)
sameFileAs(Path other, CompareMode... mode)
with CompareMode = {RECURSIVE, COMPARE_NAMES, COMPARE_SIZES, COMPARE_OWNERS}
As a developer I'd like to check if a directory contains a certain number of elements (i.e. files and diretories) because some code under test creates that number of them.
As a developer I'd like to check if a directory contains a single file because some code under test should only create one file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.