@Override
public String toString() {
- return String.format("[%s, %s]", lang, name);
+ return String.format("{lang=%s, name=%s}", lang, name);
}
}
factory.create(dbSession, name);
fail();
} catch (BadRequestException e) {
- assertThat(e).hasMessage("Quality profile already exists: QProfile{lang=xoo, name=P1}");
+ assertThat(e).hasMessage("Quality profile already exists: {lang=xoo, name=P1}");
}
}
@Test
public void to_string() throws Exception {
- assertThat(new QProfileName("xoo", "p1").toString()).isEqualTo("[xoo, p1]");
+ assertThat(new QProfileName("xoo", "p1").toString()).isEqualTo("{lang=xoo, name=p1}");
}
}