Search in sources :

Example 6 with Attachment

use of com.gitblit.models.TicketModel.Attachment in project gitblit by gitblit.

the class TicketServiceTest method newAttachment.

private Attachment newAttachment() {
    Attachment attachment = new Attachment("test1.txt");
    attachment.content = new byte[] { 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a };
    return attachment;
}
Also used : Attachment(com.gitblit.models.TicketModel.Attachment)

Aggregations

Attachment (com.gitblit.models.TicketModel.Attachment)6 TicketModel (com.gitblit.models.TicketModel)3 Change (com.gitblit.models.TicketModel.Change)2 Repository (org.eclipse.jgit.lib.Repository)2 Patchset (com.gitblit.models.TicketModel.Patchset)1 TicketFilter (com.gitblit.tickets.ITicketService.TicketFilter)1 QueryResult (com.gitblit.tickets.QueryResult)1 File (java.io.File)1 ArrayList (java.util.ArrayList)1 TreeSet (java.util.TreeSet)1 Document (org.apache.lucene.document.Document)1 TextField (org.apache.lucene.document.TextField)1 DirCache (org.eclipse.jgit.dircache.DirCache)1 DirCacheBuilder (org.eclipse.jgit.dircache.DirCacheBuilder)1 DirCacheEntry (org.eclipse.jgit.dircache.DirCacheEntry)1 ObjectInserter (org.eclipse.jgit.lib.ObjectInserter)1 RevTree (org.eclipse.jgit.revwalk.RevTree)1 Test (org.junit.Test)1