Bugfixes
This commit is contained in:
parent
27c59e60de
commit
da0a69309b
@ -373,7 +373,7 @@ public class AbilityBotTest {
|
||||
String newFirstName = USER.getFirstName() + "-test";
|
||||
String newLastName = USER.getLastName() + "-test";
|
||||
long sameId = USER.getId();
|
||||
User changedUser = new User(sameId, newFirstName, false, newLastName, newUsername, "en", false, false, false, false, false);
|
||||
User changedUser = new User(sameId, newFirstName, false, newLastName, newUsername, "en", false, false, false, false, false, false, false, false, false, false, false);
|
||||
|
||||
mockAlternateUser(update, message, changedUser);
|
||||
|
||||
|
@ -11,41 +11,8 @@ import org.telegram.telegrambots.meta.api.objects.Update;
|
||||
import org.telegram.telegrambots.meta.api.objects.User;
|
||||
|
||||
public final class TestUtils {
|
||||
public static final User USER = new User(1L, "first", false, "last", "username", null, false, false, false, false, false);
|
||||
public static final User CREATOR = new User(1337L, "creatorFirst", false, "creatorLast", "creatorUsername", null, false, false, false, false, false);
|
||||
|
||||
public static final User USER = new User(1L,
|
||||
"first",
|
||||
false,
|
||||
"last",
|
||||
"username",
|
||||
null,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
);
|
||||
public static final User CREATOR = new User(1337L,
|
||||
"creatorFirst",
|
||||
false,
|
||||
"creatorLast",
|
||||
"creatorUsername",
|
||||
null,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
);
|
||||
public static final User USER = new User(1L, "first", false, "last", "username", null, false, false, false, false, false, false, false, false, false, false, false);
|
||||
public static final User CREATOR = new User(1337L, "creatorFirst", false, "creatorLast", "creatorUsername", null, false, false, false, false, false, false, false, false, false, false, false);
|
||||
|
||||
private TestUtils() {
|
||||
|
||||
|
@ -56,6 +56,8 @@ public class Chat implements BotApiObject {
|
||||
private static final String SUPERGROUPCHATTYPE = "supergroup";
|
||||
|
||||
private static final String IS_VERIFIED_FIELD = "is_verified";
|
||||
|
||||
private static final String IS_PREMIUM_FIELD = "is_premium";
|
||||
private static final String IS_SUPPORT_FIELD = "is_support";
|
||||
private static final String IS_RESTRICTED_FIELD = "is_restricted";
|
||||
private static final String IS_CREATOR_FIELD = "is_creator";
|
||||
@ -153,6 +155,8 @@ public class Chat implements BotApiObject {
|
||||
|
||||
@JsonProperty(IS_VERIFIED_FIELD)
|
||||
private Boolean isVerified; ///< Optional. Extra.
|
||||
@JsonProperty(IS_PREMIUM_FIELD)
|
||||
private Boolean isPremium; ///< Optional. Extra.
|
||||
@JsonProperty(IS_SUPPORT_FIELD)
|
||||
private Boolean isSupport; ///< Optional. Extra.
|
||||
@JsonProperty(IS_CREATOR_FIELD)
|
||||
|
Loading…
x
Reference in New Issue
Block a user