@Test public void deserializeWithNullAsInput() { Throwable actual = thrownBy( () -> serialization.deserialize( null ) ); assertThat( actual ) .hasMessage( INPUT_MUST_NOT_BE_NULL ) .isInstanceOf( IllegalArgumentException.class ); }
@Override public GitItem deserialize( String input ) { checkArgument( input != null, INPUT_MUST_NOT_BE_NULL ); String[] split = input.split( SEPARATOR ); return new GitItem( split[ 0 ], parseLong( split[ 1 ] ), split[ 2 ], split[ 3 ] ); }
GitItemSerialization implements ItemSerialization<GitItem> { @Override public GitItem deserialize( String input ) { checkArgument( input != null, INPUT_MUST_NOT_BE_NULL ); String[] split = input.split( SEPARATOR ); return new GitItem( split[ 0 ], parseLong( split[ 1 ] ), split[ 2 ], split[ 3 ] ); } }
GitItemSerialization implements ItemSerialization<GitItem> { @Override public GitItem deserialize( String input ) { checkArgument( input != null, INPUT_MUST_NOT_BE_NULL ); String[] split = input.split( SEPARATOR ); return new GitItem( split[ 0 ], parseLong( split[ 1 ] ), split[ 2 ], split[ 3 ] ); }  }
GitItemSerialization implements ItemSerialization<GitItem> { @Override public GitItem deserialize( String input ) { checkArgument( input != null, INPUT_MUST_NOT_BE_NULL ); String[] split = input.split( SEPARATOR ); return new GitItem( split[ 0 ], parseLong( split[ 1 ] ), split[ 2 ], split[ 3 ] ); }  @Override String serialize( GitItem item ); @Override GitItem deserialize( String input ); }
GitItemSerialization implements ItemSerialization<GitItem> { @Override public GitItem deserialize( String input ) { checkArgument( input != null, INPUT_MUST_NOT_BE_NULL ); String[] split = input.split( SEPARATOR ); return new GitItem( split[ 0 ], parseLong( split[ 1 ] ), split[ 2 ], split[ 3 ] ); }  @Override String serialize( GitItem item ); @Override GitItem deserialize( String input );  }