Welcome! Please see the About page for a little more info on how this works.

0 votes
in java.data by
Given a class:

public class BoolTest {
    private Boolean aBoolean;
    private String aString;

    public Boolean isABoolean() {
        return aBoolean;
    }

    public void setABoolean(Boolean value) {
        this.aBoolean = value;
    }

    public String getAString() {
        return aString;
    }

    public void setAString(String aString) {
        this.aString = aString;
    }
}

Test:

(def example (BoolTest.))

(defn run-test []
  (do
    (-> example
      (.setABoolean true))
    (-> example
      (.setAString "something"))
    (from-java example)))

***** Actual:
(test/run-test) => {:AString "something"}

**** Expected:
(test/run-test) => {:AString "something" :ABoolean true}

1 Answer

0 votes
by
...