@@ -0,0 +1,1321 @@
+package org.inventivetalent.nbt.test;%0A%0Aimport org.inventivetalent.nbt.CompoundTag;%0Aimport org.inventivetalent.nbt.annotation.AnnotatedNBTHandler;%0Aimport org.inventivetalent.nbt.annotation.NBT;%0Aimport org.inventivetalent.nbt.annotation.NBTPriority;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class PriorityTest %7B%0A%0A%09private int c = 0;%0A%0A%09private int highest;%0A%09private int high;%0A%09private int normal;%0A%09private int low;%0A%09private int lowest;%0A%0A%09@NBT(priority = NBTPriority.HIGHEST)%0A%09void highest(@NBT String s) %7B%0A%09%09highest = c++;%0A%09%7D%0A%0A%09@NBT(priority = NBTPriority.HIGH)%0A%09void high(@NBT String s) %7B%0A%09%09high = c++;%0A%09%7D%0A%0A%09@NBT(priority = NBTPriority.NORMAL)%0A%09void normal(@NBT String s) %7B%0A%09%09normal = c++;%0A%09%7D%0A%0A%09@NBT(priority = NBTPriority.LOW)%0A%09void low(@NBT String s) %7B%0A%09%09low = c++;%0A%09%7D%0A%0A%09@NBT(priority = NBTPriority.LOWEST)%0A%09void lowest(@NBT String s) %7B%0A%09%09lowest = c++;%0A%09%7D%0A%0A%09@Test%0A%09public void priorityTest() %7B%0A%09%09AnnotatedNBTHandler handler = new AnnotatedNBTHandler(this);%0A%09%09handler.onRead(new CompoundTag() %7B%0A%09%09%09%7B%0A%09%09%09%09set(%22highest%22, %22highest%22);%0A%09%09%09%09set(%22high%22, %22high%22);%0A%09%09%09%09set(%22normal%22, %22normal%22);%0A%09%09%09%09set(%22low%22, %22low%22);%0A%09%09%09%09set(%22lowest%22, %22lowest%22);%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09assertEquals(0, highest);%0A%09%09assertEquals(1, high);%0A%09%09assertEquals(2, normal);%0A%09%09assertEquals(3, low);%0A%09%09assertEquals(4, lowest);%0A%09%7D%0A%0A%7D%0A

add priority test