Skip to content

Commit

Permalink
Updated to minecraft 1.21. Code reformat. Removed gametest framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Radu-Voinea committed Nov 25, 2024
1 parent ba56787 commit 2c267a4
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 35 deletions.
3 changes: 0 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ repositories {
dependencies {
// Dependencies
api(libs.gson)
api(libs.slf4j)
api(libs.apache.commons.compress)
api(libs.apache.commons.lang3)
api(libs.apache.commons.pool2)
Expand All @@ -39,8 +38,6 @@ dependencies {
// Tests
testImplementation(platform(libs.junit.bom))
testImplementation(libs.junit.jupiter)
testImplementation(libs.slf4j.log4j)
testImplementation(libs.log4j)
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public RedisRequest(RedisManager redisManager, String target) {
public static @Nullable RedisRequest<?> deserialize(RedisManager redisManager, String data) {
RedisRequest<?> event = redisManager.getGson().execute().fromJson(data, RedisRequest.class);

if(event == null) {
if (event == null) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.voinearadu.event_manager.dto.TestComplexEvent;
import com.voinearadu.event_manager.dto.TestEvent;
import com.voinearadu.event_manager.manager.TestEventListener;
import org.apache.log4j.BasicConfigurator;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -18,7 +17,6 @@ public class EventManagerTests {

@BeforeAll
public static void setup() {
BasicConfigurator.configure();
eventManager.register(new TestEventListener());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.voinearadu.file_manager.dto.files.FileObject;
import org.apache.log4j.BasicConfigurator;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand All @@ -20,7 +19,6 @@ public class FileManagerTests {

@BeforeAll
public static void init() {
BasicConfigurator.configure();
Gson gson = new GsonBuilder() //NOPMD - suppressed GsonCreatedForEachMethodCall
.create();
fileManager = new FileManager(() -> gson, "tmp");
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/com/voinearadu/file_manager/GsonTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import com.voinearadu.file_manager.dto.serializable.SerializableMap;
import com.voinearadu.file_manager.dto.serializable.SerializableObject;
import lombok.Getter;
import org.apache.log4j.BasicConfigurator;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -33,7 +32,6 @@ public class GsonTests {

@BeforeAll
public static void init() {
BasicConfigurator.configure();
ClassLoader classLoader = GsonTests.class.getClassLoader();

SerializableListGsonTypeAdapter serializableListGsonTypeAdapter = new SerializableListGsonTypeAdapter(classLoader);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import com.voinearadu.lambda.lambda.*;
import lombok.SneakyThrows;
import org.apache.log4j.BasicConfigurator;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
Expand All @@ -16,10 +14,6 @@

public class LambdaRunnableExecutorTest {

@BeforeAll
public static void init() {
BasicConfigurator.configure();
}
@Test
public void testLambdaExecutors() {
ArgLambdaExecutor<List<String>> addEmpty = (list) -> list.add("empty");
Expand Down
7 changes: 0 additions & 7 deletions src/test/java/com/voinearadu/logger/LoggerTest.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.voinearadu.logger;

import lombok.SneakyThrows;
import org.apache.log4j.BasicConfigurator;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
Expand All @@ -16,11 +14,6 @@
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class LoggerTest {

@BeforeAll
public static void init() {
BasicConfigurator.configure();
}

@SneakyThrows
@Test
public void testDebugLogger() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.voinearadu.message_builder;


import org.apache.log4j.BasicConfigurator;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

import java.util.Arrays;
Expand All @@ -13,11 +11,6 @@

public class MessageBuilderTests {

@BeforeAll
public static void init() {
BasicConfigurator.configure();
}

@Test
public void testMessageBuilder() {
MessageBuilder builder1 = new MessageBuilder("This is a %placeholder%");
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/com/voinearadu/redis_manager/RedisTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.voinearadu.redis_manager.manager.RedisManager;
import com.voinearadu.redis_manager.manager.TestListener;
import lombok.Getter;
import org.apache.log4j.BasicConfigurator;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -33,7 +32,6 @@ public class RedisTest {

@BeforeAll
public static void init() {
BasicConfigurator.configure();
MessageBuilderManager.init(false);

ClassLoader classLoader = RedisTest.class.getClassLoader();
Expand Down
3 changes: 0 additions & 3 deletions src/test/java/com/voinearadu/reflections/ReflectionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.voinearadu.reflections.annotation.TestAnnotation;
import com.voinearadu.reflections.dto.TestChild;
import com.voinearadu.reflections.dto.TestParent;
import org.apache.log4j.BasicConfigurator;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -20,8 +19,6 @@ public class ReflectionsTest {

@BeforeAll
public static void init() {
BasicConfigurator.configure();

ReflectionsTest.reflections = new Reflections(new ArrayList<>(), new ArrayList<>(), ReflectionsTest.class.getClassLoader(), "com.voinearadu.reflections");
}

Expand Down

0 comments on commit 2c267a4

Please sign in to comment.