Giter Club home page Giter Club logo

great-expectations's People

Contributors

cheister avatar robb avatar xian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

great-expectations's Issues

problem w/ LongMatcher

just upgraded to 0.13 and getting compilation errors:

TestHelper.java:69: cannot find symbol
symbol  : method valueOf(long)
location: bound of type variable T

test is of form:

long foo = 10;
long bar = 20;

expect(foo).toEqual(bar);

noticed a workaround for boolean primitives, might be the same issue (autoboxing?). works ok if i disable LongMatcher.

Eclipse objects to the recommended expect() methods.

Hi.

I find Eclipse doesn't like the suggested Expect.java code with the 0.12 library.

This is Java 1.6, Eclipse 3.6's response to the suggested Long:

public static <T extends Long, M extends LongMatcher<T, M>> LongMatcher<T, ?> expect(T actual) {
return wrapped(LongMatcher.class, actual);
}

Test.java:

@test
public void trivial()
{
long ten = 10;
expect(ten).toBe(10L);
//Eclipse shows an error: Bound mismatch: The generic method expect(T) of type Expect is not applicable for the arguments (Long). The inferred type ObjectMatcher<Long,ObjectMatcher<Long,M>> is not a valid substitute for the bounded parameter <M extends ObjectMatcher<T,M>>
}

Eclipse is only happy if have expect()s like this:

public static ComparableMatcher<T, ?> expect (T actual) {
return wrapped(ComparableMatcher.class, actual);
}

Boolean works happily from great-expectations 0.12 - already having this sort of expect() - but String fails in a similar way.

Am I using the wrong version of Java? Is this something else Eclipse is deficient in? I didn't see a set of minimum versions specified in the readme file.

I'm using Ubuntu Oneric, in case it's relevant.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.