test_class.declarator: PRODUCT_ID = 1234567890
test_class.modifier: private static final
test_class.original_string: private static final long PRODUCT_ID = 1234567890;
test_class.type: long
test_class.var_name: PRODUCT_ID
test_class.declarator: NAME = "testname"
test_class.modifier: private static final
test_class.original_string: private static final String NAME = "testname";
test_class.type: String
test_class.var_name: NAME
test_class.declarator: PRODUCT_IMAGE_ID = 99
test_class.modifier: private static final
test_class.original_string: private static final long PRODUCT_IMAGE_ID = 99;
test_class.type: long
test_class.var_name: PRODUCT_IMAGE_ID
test_class.declarator: PRODUCT_IMAGE_ID_LARGE = 999
test_class.modifier: private static final
test_class.original_string: private static final long PRODUCT_IMAGE_ID_LARGE = 999;
test_class.type: long
test_class.var_name: PRODUCT_IMAGE_ID_LARGE
test_class.declarator: NAME_IMAGE_ID = 200
test_class.modifier: private static final
test_class.original_string: private static final long NAME_IMAGE_ID = 200;
test_class.type: long
test_class.var_name: NAME_IMAGE_ID
test_class.declarator: size = ImageSizePreset.ICON.getSize()
test_class.modifier: private
test_class.original_string: private ImageSize size = ImageSizePreset.ICON.getSize();
test_class.type: ImageSize
test_class.var_name: size
test_class.declarator: sizeLarge = ImageSizePreset.FULL.getSize()
test_class.modifier: private
test_class.original_string: private ImageSize sizeLarge = ImageSizePreset.FULL.getSize();
test_class.type: ImageSize
test_class.var_name: sizeLarge
test_class.declarator: uut
test_class.modifier: private
test_class.original_string: private ImageDB uut;
test_class.type: ImageDB
test_class.var_name: uut
test_class.declarator: mockedProductKey
test_class.modifier: @Mock
    private
test_class.original_string: @Mock
    private ImageDBKey mockedProductKey;
test_class.type: ImageDBKey
test_class.var_name: mockedProductKey
test_class.declarator: mockedNameKey
test_class.modifier: @Mock
    private
test_class.original_string: @Mock
    private ImageDBKey mockedNameKey;
test_class.type: ImageDBKey
test_class.var_name: mockedNameKey
test_class.file: services/tools.descartes.teastore.image/src/test/java/tools/descartes/teastore/image/TestImageDB.java
test_class.identifier: TestImageDB
test_case.body: @Test(expected = NullPointerException.class)
    public void testSetImageMappingKeyNull() {
      uut.setImageMapping((ImageDBKey) null, NAME_IMAGE_ID, size);
    }
test_case.class_method_signature: TestImageDB.testSetImageMappingKeyNull()
test_case.full_signature: @Test(expected = NullPointerException.class) public void testSetImageMappingKeyNull()
test_case.identifier: testSetImageMappingKeyNull
test_case.invocations: setImageMapping
test_case.modifiers: @Test(expected = NullPointerException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetImageMappingKeyNull()
focal_class.declarator: products = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private HashMap<Long, Map<Long, ImageSize>> products = new HashMap<>();
focal_class.type: HashMap<Long, Map<Long, ImageSize>>
focal_class.var_name: products
focal_class.declarator: webui = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private HashMap<String, Map<Long, ImageSize>> webui = new HashMap<>();
focal_class.type: HashMap<String, Map<Long, ImageSize>>
focal_class.var_name: webui
focal_class.declarator: sizes = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private HashMap<Long, ImageSize> sizes = new HashMap<>();
focal_class.type: HashMap<Long, ImageSize>
focal_class.var_name: sizes
focal_class.declarator: log = LoggerFactory.getLogger(ImageDB.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(ImageDB.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: lock = new ReentrantReadWriteLock()
focal_class.modifier: private final
focal_class.original_string: private final ReadWriteLock lock = new ReentrantReadWriteLock();
focal_class.type: ReadWriteLock
focal_class.var_name: lock
focal_class.file: services/tools.descartes.teastore.image/src/main/java/tools/descartes/teastore/image/ImageDB.java
focal_class.identifier: ImageDB
focal_class.class_method_signature: ImageDB.ImageDB()
focal_class.full_signature: public  ImageDB()
focal_class.identifier: ImageDB
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ImageDB()
focal_class.class_method_signature: ImageDB.ImageDB(ImageDB copy)
focal_class.full_signature: public  ImageDB(ImageDB copy)
focal_class.identifier: ImageDB
focal_class.modifiers: public
focal_class.parameters: (ImageDB copy)
focal_class.signature:  ImageDB(ImageDB copy)
focal_class.class_method_signature: ImageDB.hasImageID(ImageDBKey imageKey, ImageSize imageSize)
focal_class.full_signature: public boolean hasImageID(ImageDBKey imageKey, ImageSize imageSize)
focal_class.identifier: hasImageID
focal_class.modifiers: public
focal_class.parameters: (ImageDBKey imageKey, ImageSize imageSize)
focal_class.return: boolean
focal_class.signature: boolean hasImageID(ImageDBKey imageKey, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.hasImageID(long productID, ImageSize imageSize)
focal_class.full_signature: public boolean hasImageID(long productID, ImageSize imageSize)
focal_class.identifier: hasImageID
focal_class.modifiers: public
focal_class.parameters: (long productID, ImageSize imageSize)
focal_class.return: boolean
focal_class.signature: boolean hasImageID(long productID, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.hasImageID(String name, ImageSize imageSize)
focal_class.full_signature: public boolean hasImageID(String name, ImageSize imageSize)
focal_class.identifier: hasImageID
focal_class.modifiers: public
focal_class.parameters: (String name, ImageSize imageSize)
focal_class.return: boolean
focal_class.signature: boolean hasImageID(String name, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.getImageID(ImageDBKey imageKey, ImageSize imageSize)
focal_class.full_signature: public long getImageID(ImageDBKey imageKey, ImageSize imageSize)
focal_class.identifier: getImageID
focal_class.modifiers: public
focal_class.parameters: (ImageDBKey imageKey, ImageSize imageSize)
focal_class.return: long
focal_class.signature: long getImageID(ImageDBKey imageKey, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.getImageID(long productID, ImageSize imageSize)
focal_class.full_signature: public long getImageID(long productID, ImageSize imageSize)
focal_class.identifier: getImageID
focal_class.modifiers: public
focal_class.parameters: (long productID, ImageSize imageSize)
focal_class.return: long
focal_class.signature: long getImageID(long productID, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.getImageID(String name, ImageSize imageSize)
focal_class.full_signature: public long getImageID(String name, ImageSize imageSize)
focal_class.identifier: getImageID
focal_class.modifiers: public
focal_class.parameters: (String name, ImageSize imageSize)
focal_class.return: long
focal_class.signature: long getImageID(String name, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.findImageID(K key, ImageSize imageSize, HashMap<K, Map<Long, ImageSize>> db)
focal_class.full_signature: private long findImageID(K key, ImageSize imageSize, HashMap<K, Map<Long, ImageSize>> db)
focal_class.identifier: findImageID
focal_class.modifiers: private
focal_class.parameters: (K key, ImageSize imageSize, HashMap<K, Map<Long, ImageSize>> db)
focal_class.return: long
focal_class.signature: long findImageID(K key, ImageSize imageSize, HashMap<K, Map<Long, ImageSize>> db)
focal_class.class_method_signature: ImageDB.getImageSize(long imageID)
focal_class.full_signature: public ImageSize getImageSize(long imageID)
focal_class.identifier: getImageSize
focal_class.modifiers: public
focal_class.parameters: (long imageID)
focal_class.return: ImageSize
focal_class.signature: ImageSize getImageSize(long imageID)
focal_class.class_method_signature: ImageDB.setImageMapping(ImageDBKey imageKey, long imageID, ImageSize imageSize)
focal_class.full_signature: public void setImageMapping(ImageDBKey imageKey, long imageID, ImageSize imageSize)
focal_class.identifier: setImageMapping
focal_class.modifiers: public
focal_class.parameters: (ImageDBKey imageKey, long imageID, ImageSize imageSize)
focal_class.return: void
focal_class.signature: void setImageMapping(ImageDBKey imageKey, long imageID, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.setImageMapping(long productID, long imageID, ImageSize imageSize)
focal_class.full_signature: public void setImageMapping(long productID, long imageID, ImageSize imageSize)
focal_class.identifier: setImageMapping
focal_class.modifiers: public
focal_class.parameters: (long productID, long imageID, ImageSize imageSize)
focal_class.return: void
focal_class.signature: void setImageMapping(long productID, long imageID, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.setImageMapping(String name, long imageID, ImageSize imageSize)
focal_class.full_signature: public void setImageMapping(String name, long imageID, ImageSize imageSize)
focal_class.identifier: setImageMapping
focal_class.modifiers: public
focal_class.parameters: (String name, long imageID, ImageSize imageSize)
focal_class.return: void
focal_class.signature: void setImageMapping(String name, long imageID, ImageSize imageSize)
focal_class.class_method_signature: ImageDB.map(K key, long imageID, ImageSize imageSize,
        HashMap<K, Map<Long, ImageSize>> db)
focal_class.full_signature: private void map(K key, long imageID, ImageSize imageSize,
        HashMap<K, Map<Long, ImageSize>> db)
focal_class.identifier: map
focal_class.modifiers: private
focal_class.parameters: (K key, long imageID, ImageSize imageSize,
        HashMap<K, Map<Long, ImageSize>> db)
focal_class.return: void
focal_class.signature: void map(K key, long imageID, ImageSize imageSize,
        HashMap<K, Map<Long, ImageSize>> db)
focal_class.class_method_signature: ImageDB.removeImageMapping(long imageID)
focal_class.full_signature: public void removeImageMapping(long imageID)
focal_class.identifier: removeImageMapping
focal_class.modifiers: public
focal_class.parameters: (long imageID)
focal_class.return: void
focal_class.signature: void removeImageMapping(long imageID)
focal_class.class_method_signature: ImageDB.unmap(long imageID, HashMap<K, Map<Long, ImageSize>> db)
focal_class.full_signature: private void unmap(long imageID, HashMap<K, Map<Long, ImageSize>> db)
focal_class.identifier: unmap
focal_class.modifiers: private
focal_class.parameters: (long imageID, HashMap<K, Map<Long, ImageSize>> db)
focal_class.return: void
focal_class.signature: void unmap(long imageID, HashMap<K, Map<Long, ImageSize>> db)
focal_method.body: public void setImageMapping(ImageDBKey imageKey, long imageID, ImageSize imageSize) {
      if (imageKey == null) {
        log.error("The supplied image key is null.");
        throw new NullPointerException("The supplied image key is null.");
      }
  
      if (imageKey.isProductKey()) {
        setImageMapping(imageKey.getProductID(), imageID, imageSize);
      } else {
        setImageMapping(imageKey.getWebUIName(), imageID, imageSize);
      }
    }
focal_method.class_method_signature: ImageDB.setImageMapping(ImageDBKey imageKey, long imageID, ImageSize imageSize)
focal_method.full_signature: public void setImageMapping(ImageDBKey imageKey, long imageID, ImageSize imageSize)
focal_method.identifier: setImageMapping
focal_method.invocations: error isProductKey setImageMapping getProductID setImageMapping getWebUIName
focal_method.modifiers: public
focal_method.parameters: (ImageDBKey imageKey, long imageID, ImageSize imageSize)
focal_method.return: void
focal_method.signature: void setImageMapping(ImageDBKey imageKey, long imageID, ImageSize imageSize)