Clover Coverage Report - Atlassian Core
Coverage timestamp: Sun Nov 30 2008 18:33:35 CST
9   57   6   1.5
0   35   0.67   6
6     1  
1    
 
 
  Thumbnail       Line # 9 9 6 0% 0.0
 
No Tests
 
1    /*
2    * Copyright (c) 2002-2004
3    * All rights reserved.
4    */
5   
6    package com.atlassian.core.util.thumbnail;
7   
8    // Thumbnail image of image attachments.
 
9    public class Thumbnail
10    {
11    private int height;
12    private int width;
13   
14    private String filename;
15    private long attachmentId;
16   
 
17  0 toggle public Thumbnail(int height, int width, String fileName, long attachmentId)
18    {
19  0 this.height = height;
20  0 this.width = width;
21  0 this.filename = fileName;
22  0 this.attachmentId = attachmentId;
23    }
24   
 
25  0 toggle public int getHeight()
26    {
27  0 return height;
28    }
29   
30   
 
31  0 toggle public int getWidth()
32    {
33  0 return width;
34    }
35   
36    /**
37    * Get the filename of the file this thumbnail represents.
38    */
 
39  0 toggle public String getFilename()
40    {
41  0 return filename;
42    }
43   
44    /**
45    * the id of the attachment for which this is a thumbnail of
46    * @return
47    */
 
48  0 toggle public long getAttachmentId()
49    {
50  0 return attachmentId;
51    }
52   
 
53  0 toggle public String toString()
54    {
55  0 return "Thumbnail " + filename + " width:" + width + " height:" + height;
56    }
57    }