Skip to content

Commit 1af63df

Browse files
fix unit test
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 95bd32d commit 1af63df

File tree

1 file changed

+24
-1
lines changed
  • app/src/main/java/it/niedermann/owncloud/notes/persistence/entity

1 file changed

+24
-1
lines changed

app/src/main/java/it/niedermann/owncloud/notes/persistence/entity/Note.java

+24-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,19 @@ public Note() {
107107
super();
108108
}
109109

110+
@Ignore
111+
public Note(@Nullable Long remoteId, @Nullable Calendar modified, @NonNull String title, @NonNull String content, @NonNull String category, boolean favorite, @Nullable String eTag) {
112+
this(remoteId,
113+
modified,
114+
title,
115+
content,
116+
category,
117+
favorite,
118+
eTag,
119+
false,
120+
false);
121+
}
122+
110123
@Ignore
111124
public Note(@Nullable Long remoteId, @Nullable Calendar modified, @NonNull String title, @NonNull String content, @NonNull String category, boolean favorite, @Nullable String eTag, boolean isShared, boolean readonly) {
112125
this.remoteId = remoteId;
@@ -119,6 +132,16 @@ public Note(@Nullable Long remoteId, @Nullable Calendar modified, @NonNull Strin
119132
this.isShared = isShared;
120133
}
121134

135+
@Ignore
136+
public Note(long id, @Nullable Long remoteId, @Nullable Calendar modified, @NonNull String title, @NonNull String content, @NonNull String category, boolean favorite, @Nullable String etag, @NonNull DBStatus status, long accountId, @NonNull String excerpt, int scrollY) {
137+
this(remoteId, modified, title, content, category, favorite, etag, false, false);
138+
this.id = id;
139+
this.status = status;
140+
this.accountId = accountId;
141+
this.excerpt = excerpt;
142+
this.scrollY = scrollY;
143+
}
144+
122145
@Ignore
123146
public Note(long id, @Nullable Long remoteId, @Nullable Calendar modified, @NonNull String title, @NonNull String content, @NonNull String category, boolean favorite, @Nullable String etag, @NonNull DBStatus status, long accountId, @NonNull String excerpt, int scrollY, boolean isShared, boolean readonly) {
124147
this(remoteId, modified, title, content, category, favorite, etag, isShared, readonly);
@@ -308,4 +331,4 @@ public String toString() {
308331
", scrollY=" + scrollY +
309332
'}';
310333
}
311-
}
334+
}

0 commit comments

Comments
 (0)