java.lang.Object
io.qameta.allure.model.Attachment
io.qameta.allure.model.GlobalAttachment
- All Implemented Interfaces:
Serializable
An attachment that belongs to the test run rather than to a test or fixture.
- Since:
- 3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongGets the time when the attachment was added.inthashCode()Sets name.Sets size.Sets source.setTimestamp(long value) Sets the time when the attachment was added.Sets type.Methods inherited from class io.qameta.allure.model.Attachment
getName, getSize, getSource, getType
-
Constructor Details
-
GlobalAttachment
public GlobalAttachment()
-
-
Method Details
-
getTimestamp
public long getTimestamp()Gets the time when the attachment was added.- Returns:
- the timestamp in milliseconds since the epoch
-
setTimestamp
Sets the time when the attachment was added.- Parameters:
value- the timestamp in milliseconds since the epoch- Returns:
- self for method chaining
-
setName
Sets name.- Overrides:
setNamein classAttachment- Parameters:
value- the value- Returns:
- self for method chaining
-
setSource
Sets source.- Overrides:
setSourcein classAttachment- Parameters:
value- the value- Returns:
- self for method chaining
-
setType
Sets type.- Overrides:
setTypein classAttachment- Parameters:
value- the value- Returns:
- self for method chaining
-
setSize
Sets size.- Overrides:
setSizein classAttachment- Parameters:
value- the value- Returns:
- self for method chaining
-
equals
-
hashCode
public int hashCode()
-