44
55import static org .junit .Assert .*;
66
7- public class AsyncClientDataTest {
7+ public class ClientDataAsyncTest {
88
99 @ Test
1010 public void retainedViewsSurviveLiveAndPackedHandoffs () {
@@ -18,7 +18,7 @@ public void retainedViewsSurviveLiveAndPackedHandoffs() {
1818 new FrameBuffer (new BWClientConfiguration .Builder ().withAsyncFrameBufferCapacity (1 ).build ())
1919 .copyBuffer (live , packed );
2020
21- AsyncClientData data = new AsyncClientData (live );
21+ ClientDataAsync data = new ClientDataAsync (live );
2222 data .setBuffer (live );
2323 ClientData .Event event = data .gameData ().getEvents (0 );
2424 ClientData .Position position = data .gameData ().getStartLocations (0 );
@@ -61,7 +61,7 @@ byte getByte(int offset) {
6161 new FrameBuffer (new BWClientConfiguration .Builder ().withAsyncFrameBufferCapacity (1 ).build ())
6262 .copyBuffer (live , packed );
6363
64- AsyncClientData data = new AsyncClientData (live );
64+ ClientDataAsync data = new ClientDataAsync (live );
6565 data .setBuffer (live );
6666 live .handoff = () -> data .setBuffer (packed );
6767 assertTrue (data .gameData ().isVisible (0 , 0 ));
@@ -84,7 +84,7 @@ public void frameBufferAllocatesReducedMemory() {
8484 }
8585
8686 @ Test
87- public void asyncClientDataReadsStaticDataFromStaticBuffer () {
87+ public void clientDataAsyncReadsStaticDataFromStaticBuffer () {
8888 WrappedBuffer mainBuffer = new WrappedBuffer (ClientData .GameData .SIZE );
8989 PackedWrappedBuffer dynamicBuffer = new PackedWrappedBuffer ();
9090
@@ -106,8 +106,8 @@ public void asyncClientDataReadsStaticDataFromStaticBuffer() {
106106 mainData .gameData ().getRegions (2 ).setIsAccessible (true );
107107 mainData .gameData ().getRegions (2 ).setIsHigherGround (true );
108108
109- // Configure AsyncClientData with mainBuffer as static and dynamicBuffer as active
110- AsyncClientData asyncData = new AsyncClientData (mainBuffer );
109+ // Configure ClientDataAsync with mainBuffer as static and dynamicBuffer as active
110+ ClientDataAsync asyncData = new ClientDataAsync (mainBuffer );
111111 asyncData .setBuffer (dynamicBuffer );
112112
113113 assertEquals (2 , asyncData .gameData ().getGroundHeight (10 , 20 ));
@@ -127,7 +127,7 @@ public void asyncClientDataReadsStaticDataFromStaticBuffer() {
127127 }
128128
129129 @ Test
130- public void asyncClientDataReadsDynamicDataWithPackedOffsets () {
130+ public void clientDataAsyncReadsDynamicDataWithPackedOffsets () {
131131 WrappedBuffer mainBuffer = new WrappedBuffer (ClientData .GameData .SIZE );
132132 PackedWrappedBuffer packedBuffer = new PackedWrappedBuffer ();
133133
@@ -166,8 +166,8 @@ public void asyncClientDataReadsDynamicDataWithPackedOffsets() {
166166 FrameBuffer frameBuffer = new FrameBuffer (config );
167167 frameBuffer .copyBuffer (mainBuffer , packedBuffer );
168168
169- // Verify AsyncClientData reads packed dynamic data accurately
170- AsyncClientData asyncData = new AsyncClientData (mainBuffer );
169+ // Verify ClientDataAsync reads packed dynamic data accurately
170+ ClientDataAsync asyncData = new ClientDataAsync (mainBuffer );
171171 asyncData .setBuffer (packedBuffer );
172172
173173 // Range 1
@@ -199,7 +199,7 @@ public void asyncClientDataReadsDynamicDataWithPackedOffsets() {
199199 }
200200
201201 @ Test
202- public void asyncClientDataWorksWithFullUnpackedBuffer () {
202+ public void clientDataAsyncWorksWithFullUnpackedBuffer () {
203203 // Tests asyncUnsafe mode where bot is placed directly on the full 33MB liveData buffer
204204 WrappedBuffer fullBuffer = new WrappedBuffer (ClientData .GameData .SIZE );
205205
@@ -208,7 +208,7 @@ public void asyncClientDataWorksWithFullUnpackedBuffer() {
208208 syncData .gameData ().setIsVisible (10 , 20 , true );
209209 syncData .gameData ().setIsInGame (true );
210210
211- AsyncClientData asyncData = new AsyncClientData (fullBuffer );
211+ ClientDataAsync asyncData = new ClientDataAsync (fullBuffer );
212212 asyncData .setBuffer (fullBuffer ); // Unpacked full buffer
213213
214214 assertTrue (asyncData .gameData ().isVisible (10 , 20 ));
@@ -237,7 +237,7 @@ public void copyBufferTracksMaxUnitsAndOnlyCopiesActiveUnitsAndEvents() {
237237 new BWClientConfiguration .Builder ().withAsyncFrameBufferCapacity (1 ).build ());
238238 frameBuffer .copyBuffer (mainBuffer , packedBuffer );
239239
240- AsyncClientData asyncData = new AsyncClientData (mainBuffer );
240+ ClientDataAsync asyncData = new ClientDataAsync (mainBuffer );
241241 asyncData .setBuffer (packedBuffer );
242242
243243 assertEquals (3 , frameBuffer .getMaxUnitCount ());
0 commit comments