mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2173 - ebean-test: Add assertContains - DbJson.of(entityBean).assertContains(...)
This commit is contained in:
1 parent
b4ae721998
commit
b7da2cbd97
23 files changed
+727
-31
No files matched your search
@@ -18,6 +18,8 @@ public class BSimpleWithGen {
|
||||
|
||||
private String name;
|
||||
|
||||
private String other;
|
||||
|
||||
@Transient
|
||||
private Map<String, List<String>> someMap;
|
||||
|
||||
@@ -31,6 +33,11 @@ public class BSimpleWithGen {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public BSimpleWithGen(String name, String other) {
|
||||
this.name = name;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package org.test;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class PlainBean {
|
||||
|
||||
public int id;
|
||||
public String name;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
PlainBean plainBean = (PlainBean) o;
|
||||
return id == plainBean.id && name.equals(plainBean.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, name);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user