test_class.declarator: delegate
test_class.modifier: @Mock
test_class.original_string: @Mock DiscCacheAware delegate;
test_class.type: DiscCacheAware
test_class.var_name: delegate
test_class.declarator: discCache
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks UniversalDiscCache discCache;
test_class.type: UniversalDiscCache
test_class.var_name: discCache
test_class.file: volley-caches/src/test/java/com/navercorp/volleyextensions/cache/universalimageloader/disc/UniversalDiscCacheTest.java
test_class.identifier: UniversalDiscCacheTest
test_case.body: @Test
  	public void testKeyIsNullWhenCalledPut() {
  		// Given
  		Entry entry = new Entry();
  		// When
  		discCache.put(null, entry);
  		// Then
  		verify(delegate, never()).put(null, new File(""));
  
  	}
test_case.class_method_signature: UniversalDiscCacheTest.testKeyIsNullWhenCalledPut()
test_case.full_signature: @Test public void testKeyIsNullWhenCalledPut()
test_case.identifier: testKeyIsNullWhenCalledPut
test_case.invocations: put put verify never
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testKeyIsNullWhenCalledPut()
focal_class.declarator: TAG = UniversalDiscCache.class.getSimpleName()
focal_class.modifier: private static final
focal_class.original_string: private static final String TAG = UniversalDiscCache.class.getSimpleName();
focal_class.type: String
focal_class.var_name: TAG
focal_class.declarator: delegate
focal_class.modifier: private final
focal_class.original_string: private final DiscCacheAware delegate;
focal_class.type: DiscCacheAware
focal_class.var_name: delegate
focal_class.file: volley-caches/src/main/java/com/navercorp/volleyextensions/cache/universalimageloader/disc/UniversalDiscCache.java
focal_class.identifier: UniversalDiscCache
focal_class.interfaces: implements Cache
focal_class.class_method_signature: UniversalDiscCache.UniversalDiscCache(DiscCacheAware delegate)
focal_class.full_signature: public  UniversalDiscCache(DiscCacheAware delegate)
focal_class.identifier: UniversalDiscCache
focal_class.modifiers: public
focal_class.parameters: (DiscCacheAware delegate)
focal_class.signature:  UniversalDiscCache(DiscCacheAware delegate)
focal_class.class_method_signature: UniversalDiscCache.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: UniversalDiscCache.get(String key)
focal_class.full_signature: @Override public Entry get(String key)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: Entry
focal_class.signature: Entry get(String key)
focal_class.class_method_signature: UniversalDiscCache.put(String key, Entry entry)
focal_class.full_signature: @Override public void put(String key, Entry entry)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (String key, Entry entry)
focal_class.return: void
focal_class.signature: void put(String key, Entry entry)
focal_class.class_method_signature: UniversalDiscCache.initialize()
focal_class.full_signature: @Override public void initialize()
focal_class.identifier: initialize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initialize()
focal_class.class_method_signature: UniversalDiscCache.invalidate(String key, boolean arg1)
focal_class.full_signature: @Override public void invalidate(String key, boolean arg1)
focal_class.identifier: invalidate
focal_class.modifiers: @Override public
focal_class.parameters: (String key, boolean arg1)
focal_class.return: void
focal_class.signature: void invalidate(String key, boolean arg1)
focal_class.class_method_signature: UniversalDiscCache.remove(String key)
focal_class.full_signature: @Override public void remove(String key)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: void
focal_class.signature: void remove(String key)
focal_method.body: @Override
  	public void put(String key, Entry entry) {
  		if (key == null) {
  			return;
  		}
  		FileOutputStream fos = null;
  		try {
  			File file = this.delegate.get(key);
  			fos = new FileOutputStream(file);
  			CacheHeader header = new CacheHeader(key, entry);
  			header.writeHeader(fos);
  			fos.write(entry.data);
  			this.delegate.put(key, file);
  			return;
  		} catch (IOException e) {
  			Log.e(TAG, "fail to put :" + key, e);
  		} finally {
  			IoUtils.closeQuietly(fos);
  		}
  	}
focal_method.class_method_signature: UniversalDiscCache.put(String key, Entry entry)
focal_method.full_signature: @Override public void put(String key, Entry entry)
focal_method.identifier: put
focal_method.invocations: get writeHeader write put e closeQuietly
focal_method.modifiers: @Override public
focal_method.parameters: (String key, Entry entry)
focal_method.return: void
focal_method.signature: void put(String key, Entry entry)