sebastianbenz / Jnario

Executable specifications for Java
136 stars 38 forks source link

Full qualified names in "should be"s leads to compile errors #171

Open borisbrodski opened 7 years ago

borisbrodski commented 7 years ago
fact "reproduce error" {
  java.lang.System => java.lang.System
}

generates

  @Test
  @Named("reproduce error")
  @Order(2)
  public void _reproduceError() throws Exception {
    Assert.assertTrue("\nExpected java.lang.System => java.lang.System but"
     + "\n     java.lang.System is " + new org.hamcrest.StringDescription().appendValue(System.class).toString()
     + "\n     java.lang is " + new org.hamcrest.StringDescription().appendValue(System.System).toString()
     + "\n     java is " + new org.hamcrest.StringDescription().appendValue(System).toString() + "\n", Should.operator_doubleArrow(
      System.class, System.class));

  }
riederm commented 7 years ago

Hi Boris, I did a fix based on that still pending branch that moves xtext version to 2.11 and ports Xtend-Richstring to back to jnario.

Now I'm not really shure where I should place my pull requests. master on this repository is atm miles away from your latest developments (noXtend_2.9-branch). Are we eventually merging stuff back to this repository's master?

to be honest, the branch this commit depends on, has no relevant changes for the fix itself. Its just that I find it not so easy to get a fully functional IDE for the old versions used in this repo's master.

Lets either bring your or @sebastianbenz master-branch to the newest state and then make our latest developments against master.