John Mercier

Results 30 comments of John Mercier

It is not obvious to me what you are trying to do. What application are you running the window manager in?

What @ajh123 is asking is if you pressed CTRL+SHIFT in the Xephyr window. This needs to happen so Xephyr captures your keyboard input rather than you normal window manager. The...

In graphviz > If a default attribute is defined using a node, edge, or graph statement, or by an attribute assignment not attached to a node or edge, any object...

Cycles need to be detected in undirected and directed graph.

Since lombok is being added to your project (from amazon-kinesis-client) it is running on your code and failing. This is what causes the compile errors. The root cause of the...

For now I am calling get() but to prevent the test from erroring with NoSuchElementExceptions I'm also asserting on isPresent(). assertThat(optional).isPresent(); assertThat(optional.get()).isSameAs(value); This helps fail rather than error with an...

The test will still fail. When an unexpected exception is thrown junit reports it as an error instead of a failure. In general I dont like unexpected errors but maybe...

What if `hasValue` returned a `Subject`? ``` assertThat(optional).hasValue(object).isSameAs(object); ``` Or another idea is to add `hasValueThat` which returns a `Subject`. I noticed something similar used for exceptions. ``` assertThat(optional).hasValueThat().isSameAs(object); ```

I think I see what you are saying. `OptionalSubject` uses `Optional` so when `actual().get()` is called it returns an `Object` type. Is it possible for `OptionalSubject` to be generic? I...