Skip to content

Commit caaa57c

Browse files
committed
Add basic TileEntityTest
1 parent 588f736 commit caaa57c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* ProtocolLib - Bukkit server library that allows access to the Minecraft protocol.
3+
* Copyright (C) 2016 dmulloy2
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of
7+
* the License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+
* See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program;
14+
* if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
15+
* 02111-1307 USA
16+
*/
17+
package com.comphenix.protocol.wrappers.nbt;
18+
19+
import org.bukkit.block.BlockState;
20+
import org.junit.BeforeClass;
21+
import org.junit.Test;
22+
23+
import com.comphenix.protocol.BukkitInitialization;
24+
25+
/**
26+
* @author dmulloy2
27+
*/
28+
public class TileEntityTest {
29+
30+
@BeforeClass
31+
public static void beforeClass() {
32+
BukkitInitialization.initializePackage();
33+
}
34+
35+
@Test
36+
public void test() {
37+
// Ensure the read and write methods exist
38+
TileEntityAccessor<BlockState> accessor = new TileEntityAccessor<>();
39+
accessor.findMethods(null, null);
40+
}
41+
}

0 commit comments

Comments
 (0)