Esempio n. 1
0
  public void testユーザー名の取得ができない() throws Exception {
    Gist gist = new Gist("", fileName, rowUrl, description, language, id);

    String expected = "";
    String actual = gist.getUserName();

    assertEquals("空文字が帰ってくる", expected, actual);

    gist = new Gist(null, fileName, rowUrl, description, language, id);

    expected = "";
    actual = gist.getUserName();

    assertEquals("空文字が帰ってくる", expected, actual);
  }
Esempio n. 2
0
 public void testユーザー名取得ができる() throws Exception {
   Gist gist = new Gist(userName, fileName, rowUrl, description, language, id);
   String expected = userName;
   String actual = gist.getUserName();
   assertEquals("ユーザー名が取れる。", expected, actual);
 }