Jimfs
Joda-Money
Jimfs | Joda-Money | |
---|---|---|
5 | 3 | |
2,380 | 637 | |
0.3% | 0.2% | |
8.5 | 6.3 | |
about 18 hours ago | 6 months ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Jimfs
-
How to write unit tests in C++ relying on non-code files?
Java has in-memory file systems that are essentially geared for this exact use case, eg jimfs[0]. You create your filesystem and any files you need when your tests are starting up, and your classes talk to them rather than the “real” ones. Maybe a similar project exists for the C++ ecosystem?
[0] https://github.com/google/jimfs
- An in-memory file system for Java
-
Any library you would like to recommend to others as it helps you a lot? For me, mapstruct is one of them. Hopefully I would hear some other nice libraries I never try.
Recently been using JIMFS. Made my tests much faster and cleaner!
- An in memory file system
-
Working and unit testing with temporary files in Java
I use Google's JIMFS "Just In Memory Filesystem" https://github.com/google/jimfs in my unit tests and have been very happy. No need to clean something up that disappears as soon as the test is over. Let's you create unix or windows style filesystems and I've used it to test a disk space healthcheck because you can set a limit to the size of the filesystem it creates. Very flexible and easy to use.
Joda-Money
- 64-Bit Bank Balances ‘Ought to Be Enough for Anybody’?
-
[Production code] The previous dev thought it was ok to use floating point variables for money
Nice, I'd not heard of this before. Looks like it has more traction than Java Money (JSR-354).
-
please for the love of god just use google before you make yourself look stupid
Joda-money is more widely known and used for that purpose: https://www.joda.org/joda-money/
What are some alternatives?
Modern Java - A Guide to Java 8 - Modern Java - A Guide to Java 8
Membrane Service Proxy - API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
Lanterna - Java library for creating text-based GUIs
OpenRefine - OpenRefine is a free, open source power tool for working with messy data and improving it
sitemapgen4j - SitemapGen4j is a library to generate XML sitemaps in Java.
LightAdmin - [PoC] Pluggable CRUD UI library for Java web applications
failsafe - Fault tolerance and resilience patterns for the JVM
Codename One - Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
Polyglot for Maven - Support alternative markup for Apache Maven POM files
Maven Wrapper - The easiest way to integrate Maven into your project!
Design Patterns - Design patterns implemented in Java