Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@

package org.glassfish.jersey.tests.api;

import java.text.ParseException;
import java.util.Date;

import org.glassfish.jersey.media.multipart.ContentDisposition;
import org.glassfish.jersey.message.internal.HttpDateFormat;
import org.glassfish.jersey.message.internal.HttpHeaderReader;

import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import java.text.ParseException;
import java.util.Date;

import static org.junit.Assert.*;


/**
Expand Down Expand Up @@ -221,6 +218,11 @@ public void testFileNameExt() {
}
}

@Test
public void rfc6266WithoutLanguage() throws ParseException {
assertFileNameExt("myfile.txt", "myfile.txt", "utf-8''myfile.txt");
}

private void assertFileNameExt(
final String expectedFileName,
final String actualFileName,
Expand Down