@@ -125,4 +125,36 @@ public void testCRUDContent() throws Exception {
125125 equalTo ("{\" message\" :\" Not Found\" ,\" documentation_url\" :\" https://developer.github.com/v3/repos/contents/#get-contents\" }" ));
126126 }
127127 }
128+
129+ @ Test
130+ public void testMIMESmall () throws IOException {
131+ GHRepository ghRepository = getTempRepository ();
132+ GHContentBuilder ghContentBuilder = ghRepository .createContent ();
133+ ghContentBuilder .message ("Some commit msg" );
134+ ghContentBuilder .path ("MIME-Small.md" );
135+ ghContentBuilder .content ("123456789012345678901234567890123456789012345678901234567" );
136+ ghContentBuilder .commit ();
137+ }
138+
139+ @ Test
140+ public void testMIMELong () throws IOException {
141+ GHRepository ghRepository = getTempRepository ();
142+ GHContentBuilder ghContentBuilder = ghRepository .createContent ();
143+ ghContentBuilder .message ("Some commit msg" );
144+ ghContentBuilder .path ("MIME-Long.md" );
145+ ghContentBuilder .content ("1234567890123456789012345678901234567890123456789012345678" );
146+ ghContentBuilder .commit ();
147+ }
148+ @ Test
149+ public void testMIMELonger () throws IOException {
150+ GHRepository ghRepository = getTempRepository ();
151+ GHContentBuilder ghContentBuilder = ghRepository .createContent ();
152+ ghContentBuilder .message ("Some commit msg" );
153+ ghContentBuilder .path ("MIME-Long.md" );
154+ ghContentBuilder .content ("123456789012345678901234567890123456789012345678901234567890"
155+ + "123456789012345678901234567890123456789012345678901234567890"
156+ + "123456789012345678901234567890123456789012345678901234567890"
157+ + "123456789012345678901234567890123456789012345678901234567890" );
158+ ghContentBuilder .commit ();
159+ }
128160}
0 commit comments