Added new attachment functionality
This commit is contained in:
@ -3,6 +3,9 @@ package de.svenkubiak.jpushover;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import de.svenkubiak.jpushover.enums.Priority;
|
||||
@ -66,5 +69,9 @@ public class TestJPushover {
|
||||
|
||||
push.enableHtml();
|
||||
assertTrue(push.isHtml());
|
||||
|
||||
File file = new File(UUID.randomUUID().toString());
|
||||
push.withAttachment(file);
|
||||
assertTrue(push.getAttachment() != null);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user