Skip to content

Commit

Permalink
JUnit parameterized tests
Browse files Browse the repository at this point in the history
Issue #973
  • Loading branch information
ghostcity committed Nov 21, 2020
1 parent 7224c8f commit 039da58
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 313 deletions.
18 changes: 4 additions & 14 deletions src/main/java/net/masterthought/cucumber/json/Embedding.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,15 @@ public String getExtension() {
mime = mime.toLowerCase(Locale.ENGLISH).trim();

switch (mime) {
case "image/png":
case "image/gif":
case "image/bmp":
case "image/jpeg":
case "image/svg":
case "text/html":
case "text/xml":
case "text/csv":
case "application/json":
case "application/pdf":
case "application/xml":
case "application/zip":
case "video/mp4":
return mime.substring(mime.indexOf('/') + 1);
// image available remotely stored as link/url
case "image/url":
return "image";
case "text/plain":
return "txt";
case "application/ecmascript":
return "es";
case "application/javascript":
return "js";
case "application/x-tar":
return "tar";
case "application/x-bzip2":
Expand Down
Loading

0 comments on commit 039da58

Please sign in to comment.