@Test(expected = RedisSerializerException.class) public void nullEventTest() throws RedisSerializerException { Serializer serializer = new PlainSerializer(); serializer.serialize(null); }
public byte[] serialize(Event event) throws RedisSerializerException { if (event == null) { throw new RedisSerializerException("Event cannot be null"); } return event.getBody(); }
PlainSerializer implements Serializer { public byte[] serialize(Event event) throws RedisSerializerException { if (event == null) { throw new RedisSerializerException("Event cannot be null"); } return event.getBody(); } }
PlainSerializer implements Serializer { public byte[] serialize(Event event) throws RedisSerializerException { if (event == null) { throw new RedisSerializerException("Event cannot be null"); } return event.getBody(); }  }
PlainSerializer implements Serializer { public byte[] serialize(Event event) throws RedisSerializerException { if (event == null) { throw new RedisSerializerException("Event cannot be null"); } return event.getBody(); }  void configure(Context context); void configure(ComponentConfiguration conf); byte[] serialize(Event event); }
PlainSerializer implements Serializer { public byte[] serialize(Event event) throws RedisSerializerException { if (event == null) { throw new RedisSerializerException("Event cannot be null"); } return event.getBody(); }  void configure(Context context); void configure(ComponentConfiguration conf); byte[] serialize(Event event);  }