Skip to content

Commit

Permalink
update test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaktushose committed Apr 19, 2024
1 parent c714c0c commit b9d2336
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/java/adapting/mock/GuildMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@
import net.dv8tion.jda.api.utils.FileUpload;
import net.dv8tion.jda.api.utils.cache.MemberCacheView;
import net.dv8tion.jda.api.utils.cache.SnowflakeCacheView;
import net.dv8tion.jda.api.utils.cache.SortedChannelCacheView;
import net.dv8tion.jda.api.utils.cache.SortedSnowflakeCacheView;
import net.dv8tion.jda.api.utils.concurrent.Task;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.time.Duration;
import java.time.OffsetDateTime;
import java.time.temporal.TemporalAccessor;
import java.util.*;
Expand Down Expand Up @@ -124,6 +126,12 @@ public AuditableRestAction<Void> ban(@NotNull UserSnowflake user, int deletionTi
return null;
}

@NotNull
@Override
public AuditableRestAction<BulkBanResponse> ban(@NotNull Collection<UserSnowflake> collection, @Nullable Duration duration) {
return null;
}

@NotNull
@Override
public AuditableRestAction<Void> unban(@NotNull UserSnowflake userSnowflake) {
Expand Down Expand Up @@ -604,6 +612,12 @@ public SortedSnowflakeCacheView<ForumChannel> getForumChannelCache() {
return null;
}

@NotNull
@Override
public SortedChannelCacheView<GuildChannel> getChannelCache() {
return null;
}

@NotNull
@Override
public SnowflakeCacheView<MediaChannel> getMediaChannelCache() {
Expand Down
15 changes: 15 additions & 0 deletions src/test/java/adapting/mock/JDAMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.entities.*;
import net.dv8tion.jda.api.entities.channel.Channel;
import net.dv8tion.jda.api.entities.channel.concrete.*;
import net.dv8tion.jda.api.entities.emoji.RichCustomEmoji;
import net.dv8tion.jda.api.entities.sticker.StickerPack;
Expand All @@ -20,9 +21,11 @@
import net.dv8tion.jda.api.requests.Response;
import net.dv8tion.jda.api.requests.RestAction;
import net.dv8tion.jda.api.requests.restaction.*;
import net.dv8tion.jda.api.requests.restaction.pagination.EntitlementPaginationAction;
import net.dv8tion.jda.api.sharding.ShardManager;
import net.dv8tion.jda.api.utils.cache.CacheFlag;
import net.dv8tion.jda.api.utils.cache.CacheView;
import net.dv8tion.jda.api.utils.cache.ChannelCacheView;
import net.dv8tion.jda.api.utils.cache.SnowflakeCacheView;
import okhttp3.OkHttpClient;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -278,6 +281,12 @@ public SnowflakeCacheView<ScheduledEvent> getScheduledEventCache() {
return null;
}

@NotNull
@Override
public ChannelCacheView<Channel> getChannelCache() {
return null;
}

@NotNull
@Override
public SnowflakeCacheView<StageChannel> getStageChannelCache() {
Expand Down Expand Up @@ -437,6 +446,12 @@ public RestAction<ApplicationInfo> retrieveApplicationInfo() {
return null;
}

@NotNull
@Override
public EntitlementPaginationAction retrieveEntitlements() {
return null;
}

@NotNull
@Override
public JDA setRequiredScopes(@NotNull Collection<String> collection) {
Expand Down
14 changes: 14 additions & 0 deletions src/test/java/adapting/mock/SlashCommandInteractionMock.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package adapting.mock;

import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.entities.Entitlement;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.User;
Expand All @@ -12,6 +13,7 @@
import net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction;
import net.dv8tion.jda.api.interactions.modals.Modal;
import net.dv8tion.jda.api.requests.restaction.interactions.ModalCallbackAction;
import net.dv8tion.jda.api.requests.restaction.interactions.PremiumRequiredCallbackAction;
import net.dv8tion.jda.api.requests.restaction.interactions.ReplyCallbackAction;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -67,6 +69,12 @@ public DiscordLocale getUserLocale() {
return null;
}

@NotNull
@Override
public List<Entitlement> getEntitlements() {
return null;
}

@Override
public JDA getJDA() {
return null;
Expand Down Expand Up @@ -128,4 +136,10 @@ public List<OptionMapping> getOptions() {
public long getIdLong() {
return 0;
}

@NotNull
@Override
public PremiumRequiredCallbackAction replyWithPremiumRequired() {
return null;
}
}

0 comments on commit b9d2336

Please sign in to comment.