ContentUriModel { @Override public String toString() { return PREFIX + server + "/" + mediaId; } ContentUriModel(String server, String mediaId); String getServer(); String getMediaId(); static ContentUriModel valueOf(String uri); @Override String toString(); static final String PREFIX; static final String DELIMITER; }
@Test public void toStringTest() { ContentUriModel model = new ContentUriModel("ru-matrix.org", "123"); assertEquals("mxc: }