Comments (8)
Hey :)
Nope, it's not packaged.
It's taken from here though:
com.google.common.truth.extensions.proto.MessageDifferencer
So maybe you can get it from there:
https://mvnrepository.com/artifact/com.google.truth/truth
from startup-os.
@oferb Thanks for the quick response. I went through that repo too, but in that repo this class is made private https://jar-download.com/artifacts/com.google.truth.extensions/truth-proto-extension/0.39/source-code/com/google/common/truth/extensions/proto/MessageDifferencer.java. Any way I can use truth library to receive a boolean instead of assert for Message comparisons that you might be aware of?
from startup-os.
Maybe you can send them a PR? :-)
It's just a small 1 word change :-))
Any way I can use truth library to receive a boolean instead of assert for Message comparisons that you might be aware of?
I'm not well-acquainted with that code, so I don't know.
But you can also just copy the class and use it.. or maybe in the meantime until they accept your PR :))
from startup-os.
I tried copying the class locally but faced compilation issue of dependency
MessageDifferencer.java:[484,17] error: cannot find symbol [ERROR] symbol: class AutoValue_MessageDifferencer_SpecificField [ERROR] location: class SpecificField
I have added auto.value and auto.value.annotation to dependencies
<dependency> <groupId>com.google.auto.value</groupId> <artifactId>auto-value-annotations</artifactId> <version>1.7</version> </dependency> <dependency> <groupId>com.google.auto.value</groupId> <artifactId>auto-value</artifactId> <version>1.7</version> <scope>provided</scope> </dependency>
from startup-os.
I'll mark this as resolved here. Thanks for the help :)
from startup-os.
Hi @sumitbh250 , did you manage to use this MessageDifferencer class?
from startup-os.
@frankfighton fyi, if you'd like to use MessageDifferencer
, you can do so so long as you include the following dependencies (gradle example given):
compile "com.google.auto.value:auto-value-annotations:1.7"
annotationProcessor "com.google.auto.value:auto-value:1.7"
from startup-os.
@sumitbh250 so you ended up copy the class to your local and updated the dependency like @drather19 mentioned? MessageDifferencer is exactly what I am looking for.
I see there is an open issue here google/truth#656
from startup-os.
Related Issues (20)
- `base_folder/head` contains two folders with `startup-os` repos
- The Firebase token expiration
- Create a simple HTML + js page to replace web_login HOT 1
- Use the usernames defined in the repo
- Fallback server bug HOT 1
- Delete old projects with vulnerabilities
- Update Reviewer to Angular 7 HOT 1
- Reviewer Lite
- Option to mark a file as reviewed on diff page
- File expand bug
- Upload queue [BUG] HOT 1
- Blocks should have the same amount of lines [BUG]
- Shared protoc
- Fix reviewer deprecations
- Create a derivative user collection in `hasadna` to that in `startup-os`
- MessageDifferencer ignoreFields doesn't work for RepeatedFields. HOT 4
- Has this been abandoned? HOT 10
- Error: "Project startup-os has been deleted" on build HOT 2
- gRPC microservices example can not run: GitRepoFactory.java is missing in repository. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from startup-os.