gluu
静的公開メンバ関数 | 非公開メンバ関数 | 静的非公開変数類 | 全メンバ一覧
org.xdi.oxauth.model.uma.TestUtil クラス
org.xdi.oxauth.model.uma.TestUtil 連携図
Collaboration graph

静的公開メンバ関数

static void assertNotBlank (String p_str)
 
static void assertErrorResponse (String p_entity)
 

非公開メンバ関数

 TestUtil ()
 

静的非公開変数類

static final Logger LOG = Logger.getLogger(TestUtil.class)
 

詳解

著者
Yuriy Zabrovarnyy
バージョン
0.9, 16/10/2013

構築子と解体子

◆ TestUtil()

org.xdi.oxauth.model.uma.TestUtil.TestUtil ( )
inlineprivate
27  {
28  }

関数詳解

◆ assertErrorResponse()

static void org.xdi.oxauth.model.uma.TestUtil.assertErrorResponse ( String  p_entity)
inlinestatic
34  {
35  assertNotNull(p_entity, "Unexpected result: " + p_entity);
36  try {
37  JSONObject jsonObj = new JSONObject(p_entity);
38  assertTrue(jsonObj.has("error"), "The error type is null");
39  assertTrue(jsonObj.has("error_description"), "The error description is null");
40  } catch (JSONException e) {
41  LOG.error(e.getMessage(), e);
42  fail(e.getMessage() + "\nResponse was: " + p_entity);
43  }
44  }
static final Logger LOG
Definition: TestUtil.java:25

◆ assertNotBlank()

static void org.xdi.oxauth.model.uma.TestUtil.assertNotBlank ( String  p_str)
inlinestatic
30  {
31  assertTrue(StringUtils.isNotBlank(p_str));
32  }

メンバ詳解

◆ LOG

final Logger org.xdi.oxauth.model.uma.TestUtil.LOG = Logger.getLogger(TestUtil.class)
staticprivate

このクラス詳解は次のファイルから抽出されました: