@Test public void testGetFormatDescription() { String format = "Unknown"; assertThat("testGetFormatDescription 0", bs.getFormatDescription(), notNullValue()); assertThat("testGetFormatDescription 1", bs.getFormatDescription(), not(equalTo(""))); assertThat("testGetFormatDescription 2", bs.getFormatDescription(), equalTo(format)); }
public String getFormatDescription() { if (bitstreamFormat.getShortDescription().equals("Unknown")) { String desc = bRow.getStringColumn("user_format_description"); if (desc == null) { return "Unknown"; } return desc; } return bitstreamFormat.getShortDescription(); }
Bitstream extends DSpaceObject { public String getFormatDescription() { if (bitstreamFormat.getShortDescription().equals("Unknown")) { String desc = bRow.getStringColumn("user_format_description"); if (desc == null) { return "Unknown"; } return desc; } return bitstreamFormat.getShortDescription(); } }
Bitstream extends DSpaceObject { public String getFormatDescription() { if (bitstreamFormat.getShortDescription().equals("Unknown")) { String desc = bRow.getStringColumn("user_format_description"); if (desc == null) { return "Unknown"; } return desc; } return bitstreamFormat.getShortDescription(); } Bitstream(Context context, TableRow row); }
Bitstream extends DSpaceObject { public String getFormatDescription() { if (bitstreamFormat.getShortDescription().equals("Unknown")) { String desc = bRow.getStringColumn("user_format_description"); if (desc == null) { return "Unknown"; } return desc; } return bitstreamFormat.getShortDescription(); } Bitstream(Context context, TableRow row); static Bitstream find(Context context, int id); static Bitstream[] findAll(Context context); int getID(); String getHandle(); int getSequenceID(); void setSequenceID(int sid); String getName(); void setName(String n); String getSource(); void setSource(String n); String getDescription(); void setDescription(String n); String getChecksum(); String getChecksumAlgorithm(); long getSize(); void setUserFormatDescription(String desc); String getUserFormatDescription(); String getFormatDescription(); BitstreamFormat getFormat(); void setFormat(BitstreamFormat f); void update(); InputStream retrieve(); Bundle[] getBundles(); int getType(); boolean isRegisteredBitstream(); int getStoreNumber(); DSpaceObject getParentObject(); }
Bitstream extends DSpaceObject { public String getFormatDescription() { if (bitstreamFormat.getShortDescription().equals("Unknown")) { String desc = bRow.getStringColumn("user_format_description"); if (desc == null) { return "Unknown"; } return desc; } return bitstreamFormat.getShortDescription(); } Bitstream(Context context, TableRow row); static Bitstream find(Context context, int id); static Bitstream[] findAll(Context context); int getID(); String getHandle(); int getSequenceID(); void setSequenceID(int sid); String getName(); void setName(String n); String getSource(); void setSource(String n); String getDescription(); void setDescription(String n); String getChecksum(); String getChecksumAlgorithm(); long getSize(); void setUserFormatDescription(String desc); String getUserFormatDescription(); String getFormatDescription(); BitstreamFormat getFormat(); void setFormat(BitstreamFormat f); void update(); InputStream retrieve(); Bundle[] getBundles(); int getType(); boolean isRegisteredBitstream(); int getStoreNumber(); DSpaceObject getParentObject();  }