Source:
<code>public void testSendingOfCreateVisualCharacterEvent() { EntityRef clientEntity = mockEntityWithUniqueId(); EntityRef otherClientEntity = mockEntityWithUniqueId(); EntityRef ownCharacterEntity = mockEntityWithUniqueId(); List<Event> ownCharacterEntityEvents = new ArrayList<>(); recordEntityEventsToList(ownCharacterEntity, ownCharacterEntityEvents); EntityRef otherCharacterEntity = mockEntityWithUniqueId(); List<Event> otherCharacterEntityEvents = new ArrayList<>(); recordEntityEventsToList(otherCharacterEntity, otherCharacterEntityEvents); clientEntityReturnedByLocalPlayer = EntityRef.NULL; <START> system.onActivatedVisualCharacter(OnActivatedComponent.newInstance(), otherCharacterEntity); <END> system.onActivatedVisualCharacter(OnActivatedComponent.newInstance(), ownCharacterEntity); simulateProperLinkingOfLocalPlayerAndCharacterEntities(clientEntity, otherClientEntity, ownCharacterEntity, otherCharacterEntity); system.onAwaitedLocalCharacterSpawnEvent(new AwaitedLocalCharacterSpawnEvent(), ownCharacterEntity); assertTypesInListEqual(ownCharacterEntityEvents, Collections.emptyList()); assertTypesInListEqual(otherCharacterEntityEvents, Arrays.asList(CreateVisualCharacterEvent.class)); EntityRef laterJoiningCharacterEntity = mockEntityWithUniqueId(); List<Event> laterJoiningCharacterEntityEvents = new ArrayList<>(); recordEntityEventsToList(laterJoiningCharacterEntity, laterJoiningCharacterEntityEvents); Mockito.when(laterJoiningCharacterEntity.getOwner()).thenReturn(EntityRef.NULL); system.onActivatedVisualCharacter(OnActivatedComponent.newInstance(), laterJoiningCharacterEntity); assertTypesInListEqual(laterJoiningCharacterEntityEvents, Arrays.asList(CreateVisualCharacterEvent.class)); }</code><technical_language>Syntax error instance of situation - VisualCharacterComponent is supplied method required. I suspect target method changed test written? Easy miss engine-tests force recompile re-run game for play testing. This is is marking Jenkins build broken. I throwing in a new VisualCharacterComponent() in spots test hit similar sounding NPE needs a quick bit of tweaking</technical_language>

Target:
public void testSendingOfCreateVisualCharacterEvent() { EntityRef clientEntity = mockEntityWithUniqueId(); EntityRef otherClientEntity = mockEntityWithUniqueId(); EntityRef ownCharacterEntity = mockEntityWithUniqueId(); List<Event> ownCharacterEntityEvents = new ArrayList<>(); recordEntityEventsToList(ownCharacterEntity, ownCharacterEntityEvents); VisualCharacterComponent visualComponentOfOwnCharacter = new VisualCharacterComponent(); Mockito.when(ownCharacterEntity.getComponent(VisualCharacterComponent.class)).thenReturn(visualComponentOfOwnCharacter); EntityRef otherCharacterEntity = mockEntityWithUniqueId(); List<Event> otherCharacterEntityEvents = new ArrayList<>(); recordEntityEventsToList(otherCharacterEntity, otherCharacterEntityEvents); clientEntityReturnedByLocalPlayer = EntityRef.NULL; system.onActivatedVisualCharacter(OnActivatedComponent.newInstance(), otherCharacterEntity, new VisualCharacterComponent()); system.onActivatedVisualCharacter(OnActivatedComponent.newInstance(), ownCharacterEntity, visualComponentOfOwnCharacter); simulateProperLinkingOfLocalPlayerAndCharacterEntities(clientEntity, otherClientEntity, ownCharacterEntity, otherCharacterEntity); system.onAwaitedLocalCharacterSpawnEvent(new AwaitedLocalCharacterSpawnEvent(), ownCharacterEntity); assertTypesInListEqual(ownCharacterEntityEvents, Collections.emptyList()); assertTypesInListEqual(otherCharacterEntityEvents, Arrays.asList(CreateVisualCharacterEvent.class)); EntityRef laterJoiningCharacterEntity = mockEntityWithUniqueId(); List<Event> laterJoiningCharacterEntityEvents = new ArrayList<>(); recordEntityEventsToList(laterJoiningCharacterEntity, laterJoiningCharacterEntityEvents); Mockito.when(laterJoiningCharacterEntity.getOwner()).thenReturn(EntityRef.NULL); system.onActivatedVisualCharacter(OnActivatedComponent.newInstance(), laterJoiningCharacterEntity, new VisualCharacterComponent()); assertTypesInListEqual(laterJoiningCharacterEntityEvents, Arrays.asList(CreateVisualCharacterEvent.class)); }