test_class.declarator: embedding
test_class.modifier: private
test_class.original_string: private Embedding embedding;
test_class.type: Embedding
test_class.var_name: embedding
test_class.file: plugin-code/src/test/java/com/trivago/cluecumber/json/pojo/EmbeddingTest.java
test_class.identifier: EmbeddingTest
test_case.body: @Test
      public void getFileEndingTest() {
          embedding.setMimeType(MimeType.PNG);
          assertThat(embedding.getFileEnding(), is("png"));
          embedding.setMimeType(MimeType.GIF);
          assertThat(embedding.getFileEnding(), is("gif"));
          embedding.setMimeType(MimeType.BMP);
          assertThat(embedding.getFileEnding(), is("bmp"));
          embedding.setMimeType(MimeType.JPEG);
          assertThat(embedding.getFileEnding(), is("jpeg"));
          embedding.setMimeType(MimeType.HTML);
          assertThat(embedding.getFileEnding(), is("html"));
          embedding.setMimeType(MimeType.XML);
          assertThat(embedding.getFileEnding(), is("xml"));
          embedding.setMimeType(MimeType.JSON);
          assertThat(embedding.getFileEnding(), is("json"));
          embedding.setMimeType(MimeType.APPLICATION_XML);
          assertThat(embedding.getFileEnding(), is("xml"));
          embedding.setMimeType(MimeType.SVG);
          assertThat(embedding.getFileEnding(), is("svg"));
          embedding.setMimeType(MimeType.SVG_XML);
          assertThat(embedding.getFileEnding(), is("svg"));
          embedding.setMimeType(MimeType.TXT);
          assertThat(embedding.getFileEnding(), is("txt"));
          embedding.setMimeType(MimeType.PDF);
          assertThat(embedding.getFileEnding(), is("pdf"));
          embedding.setMimeType(MimeType.UNKNOWN);
          assertThat(embedding.getFileEnding(), is("unknown"));
      }
test_case.class_method_signature: EmbeddingTest.getFileEndingTest()
test_case.full_signature: @Test public void getFileEndingTest()
test_case.identifier: getFileEndingTest
test_case.invocations: setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is setMimeType assertThat getFileEnding is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getFileEndingTest()
focal_class.declarator: data
focal_class.modifier: private
focal_class.original_string: private String data;
focal_class.type: String
focal_class.var_name: data
focal_class.declarator: decodedData
focal_class.modifier: private
focal_class.original_string: private String decodedData;
focal_class.type: String
focal_class.var_name: decodedData
focal_class.declarator: mimeType = MimeType.UNKNOWN
focal_class.modifier: @SerializedName("mime_type")
      private
focal_class.original_string: @SerializedName("mime_type")
      private MimeType mimeType = MimeType.UNKNOWN;
focal_class.type: MimeType
focal_class.var_name: mimeType
focal_class.declarator: name = ""
focal_class.modifier: private
focal_class.original_string: private String name = "";
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: isExternalContent
focal_class.modifier: private
focal_class.original_string: private boolean isExternalContent;
focal_class.type: boolean
focal_class.var_name: isExternalContent
focal_class.declarator: filename = ""
focal_class.modifier: private transient
focal_class.original_string: private transient String filename = "";
focal_class.type: String
focal_class.var_name: filename
focal_class.file: plugin-code/src/main/java/com/trivago/cluecumber/json/pojo/Embedding.java
focal_class.identifier: Embedding
focal_class.class_method_signature: Embedding.getData()
focal_class.full_signature: public String getData()
focal_class.identifier: getData
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getData()
focal_class.class_method_signature: Embedding.setData(final String data)
focal_class.full_signature: public void setData(final String data)
focal_class.identifier: setData
focal_class.modifiers: public
focal_class.parameters: (final String data)
focal_class.return: void
focal_class.signature: void setData(final String data)
focal_class.class_method_signature: Embedding.getDecodedData()
focal_class.full_signature: public String getDecodedData()
focal_class.identifier: getDecodedData
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDecodedData()
focal_class.class_method_signature: Embedding.decodeData(final String data)
focal_class.full_signature: public void decodeData(final String data)
focal_class.identifier: decodeData
focal_class.modifiers: public
focal_class.parameters: (final String data)
focal_class.return: void
focal_class.signature: void decodeData(final String data)
focal_class.class_method_signature: Embedding.getMimeType()
focal_class.full_signature: public MimeType getMimeType()
focal_class.identifier: getMimeType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MimeType
focal_class.signature: MimeType getMimeType()
focal_class.class_method_signature: Embedding.setMimeType(final MimeType mimeType)
focal_class.full_signature: public void setMimeType(final MimeType mimeType)
focal_class.identifier: setMimeType
focal_class.modifiers: public
focal_class.parameters: (final MimeType mimeType)
focal_class.return: void
focal_class.signature: void setMimeType(final MimeType mimeType)
focal_class.class_method_signature: Embedding.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: Embedding.setName(final String name)
focal_class.full_signature: public void setName(final String name)
focal_class.identifier: setName
focal_class.modifiers: public
focal_class.parameters: (final String name)
focal_class.return: void
focal_class.signature: void setName(final String name)
focal_class.class_method_signature: Embedding.getFilename()
focal_class.full_signature: public String getFilename()
focal_class.identifier: getFilename
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFilename()
focal_class.class_method_signature: Embedding.setFilename(final String filename)
focal_class.full_signature: public void setFilename(final String filename)
focal_class.identifier: setFilename
focal_class.modifiers: public
focal_class.parameters: (final String filename)
focal_class.return: void
focal_class.signature: void setFilename(final String filename)
focal_class.class_method_signature: Embedding.isImage()
focal_class.full_signature: public boolean isImage()
focal_class.identifier: isImage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isImage()
focal_class.class_method_signature: Embedding.isPlainText()
focal_class.full_signature: public boolean isPlainText()
focal_class.identifier: isPlainText
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isPlainText()
focal_class.class_method_signature: Embedding.getFileEnding()
focal_class.full_signature: public String getFileEnding()
focal_class.identifier: getFileEnding
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFileEnding()
focal_class.class_method_signature: Embedding.isExternalContent()
focal_class.full_signature: public boolean isExternalContent()
focal_class.identifier: isExternalContent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isExternalContent()
focal_method.body: public String getFileEnding() {
          switch (mimeType) {
              case PNG:
              case GIF:
              case BMP:
              case JPG:
              case JPEG:
              case HTML:
              case XML:
              case JSON:
              case APPLICATION_XML:
                  return mimeType.getContentType().substring(mimeType.getContentType().indexOf('/') + 1);
              case SVG:
              case SVG_XML:
                  return "svg";
              case TXT:
                  return "txt";
              case PDF:
                  return "pdf";
              default:
                  return "unknown";
          }
      }
focal_method.class_method_signature: Embedding.getFileEnding()
focal_method.full_signature: public String getFileEnding()
focal_method.identifier: getFileEnding
focal_method.invocations: substring getContentType indexOf getContentType
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getFileEnding()