@Test public void keyNotNull() { assertThat(message.getKey(), notNullValue()); }
@Override public MessageKey getKey() { if(super.getKey() == null) { HashMap<String, Object> key = new HashMap<>(); key.put(NAME_KEY, getName()); setKey(new MessageKey(key)); } return super.getKey(); }
NamedVehicleMessage extends KeyedMessage { @Override public MessageKey getKey() { if(super.getKey() == null) { HashMap<String, Object> key = new HashMap<>(); key.put(NAME_KEY, getName()); setKey(new MessageKey(key)); } return super.getKey(); } }
NamedVehicleMessage extends KeyedMessage { @Override public MessageKey getKey() { if(super.getKey() == null) { HashMap<String, Object> key = new HashMap<>(); key.put(NAME_KEY, getName()); setKey(new MessageKey(key)); } return super.getKey(); } NamedVehicleMessage(String name);  NamedVehicleMessage(Long timestamp, String name); protected  NamedVehicleMessage(Parcel in); protected  NamedVehicleMessage(); }
NamedVehicleMessage extends KeyedMessage { @Override public MessageKey getKey() { if(super.getKey() == null) { HashMap<String, Object> key = new HashMap<>(); key.put(NAME_KEY, getName()); setKey(new MessageKey(key)); } return super.getKey(); } NamedVehicleMessage(String name);  NamedVehicleMessage(Long timestamp, String name); protected  NamedVehicleMessage(Parcel in); protected  NamedVehicleMessage(); String getName(); @Override int compareTo(VehicleMessage other); @Override boolean equals(Object obj); @Override MessageKey getKey(); static boolean containsRequiredFields(Set<String> fields); @Override String toString(); @Override void writeToParcel(Parcel out, int flags); }
NamedVehicleMessage extends KeyedMessage { @Override public MessageKey getKey() { if(super.getKey() == null) { HashMap<String, Object> key = new HashMap<>(); key.put(NAME_KEY, getName()); setKey(new MessageKey(key)); } return super.getKey(); } NamedVehicleMessage(String name);  NamedVehicleMessage(Long timestamp, String name); protected  NamedVehicleMessage(Parcel in); protected  NamedVehicleMessage(); String getName(); @Override int compareTo(VehicleMessage other); @Override boolean equals(Object obj); @Override MessageKey getKey(); static boolean containsRequiredFields(Set<String> fields); @Override String toString(); @Override void writeToParcel(Parcel out, int flags);  }