File tree Expand file tree Collapse file tree 3 files changed +21
-6
lines changed
src/test/java/com/comphenix/protocol Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 12
12
- name : Setup java
13
13
uses : actions/setup-java@v2
14
14
with :
15
- distribution : ' adopt '
15
+ distribution : ' temurin '
16
16
java-version : ' 16'
17
- check-latest : true
18
17
19
18
- name : Run maven build lifecycle
20
19
run : mvn --batch-mode clean test package
Original file line number Diff line number Diff line change @@ -179,4 +179,5 @@ logs/
179
179
180
180
.gradle /
181
181
build /
182
- logs /
182
+ logs /
183
+ .java-version
Original file line number Diff line number Diff line change @@ -40,12 +40,27 @@ private BukkitInitialization() {
40
40
private boolean initialized ;
41
41
private boolean packaged ;
42
42
43
+ /**
44
+ * Statically initializes the mock server for unit testing
45
+ */
46
+ public static synchronized void initializeAll () {
47
+ instance .initialize ();
48
+ }
49
+
50
+ /**
51
+ * @deprecated - Replaced with initializeAll()
52
+ */
53
+ @ Deprecated
43
54
public static synchronized void initializePackage () {
44
- instance . setPackage ();
55
+ initializeAll ();
45
56
}
46
57
58
+ /**
59
+ * @deprecated - Replaced with initializeAll()
60
+ */
61
+ @ Deprecated
47
62
public static synchronized void initializeItemMeta () {
48
- instance . initialize ();
63
+ initializeAll ();
49
64
}
50
65
51
66
/**
@@ -63,7 +78,7 @@ private void initialize() {
63
78
ex .printStackTrace ();
64
79
}
65
80
66
- initializePackage ();
81
+ instance . setPackage ();
67
82
68
83
SharedConstants .a ();
69
84
DispenserRegistry .init ();
You can’t perform that action at this time.
0 commit comments