Example usage for org.apache.http.auth MalformedChallengeException MalformedChallengeException

List of usage examples for org.apache.http.auth MalformedChallengeException MalformedChallengeException

Introduction

In this page you can find the example usage for org.apache.http.auth MalformedChallengeException MalformedChallengeException.

Prototype

public MalformedChallengeException(final String message, final Throwable cause) 

Source Link

Document

Creates a new MalformedChallengeException with the specified detail message and cause.

Usage

From source file:de.akquinet.gomobile.androlog.test.MailReporterTest.java

public void testMail() {
    Log.init(getContext());//from w  w  w  . j ava2s  . co m
    String message = "This is a INFO test";
    String tag = "my.log.info";
    Log.d(tag, message);
    Log.i(tag, message);
    Log.w(tag, message);
    List<String> list = Log.getReportedEntries();
    Assert.assertNotNull(list);
    Assert.assertFalse(list.isEmpty());
    Assert.assertEquals(2, list.size()); // i + w

    Log.report();
    Log.report("this is a user message", null);
    Exception error = new MalformedChallengeException("error message", new NumberFormatException());
    Log.report(null, error);
}

From source file:de.akquinet.gomobile.androlog.test.PostReporterTest.java

public void testPost() {
    Log.init(getContext());/*from  w w w.  jav  a2s.  c o m*/
    String message = "This is a INFO test";
    String tag = "my.log.info";
    Log.d(tag, message);
    Log.i(tag, message);
    Log.w(tag, message);
    List<String> list = Log.getReportedEntries();
    Assert.assertNotNull(list);
    Assert.assertFalse(list.isEmpty());
    Assert.assertEquals(2, list.size()); // i + w

    Log.report();
    Log.report("this is a user message", null);
    Exception error = new MalformedChallengeException("error message", new NumberFormatException());
    Log.report(null, error);
}

From source file:de.akquinet.gomobile.androlog.test.MailReporterTest.java

public void testMailWithLongLog() {
    Log.init(getContext());//from ww w  .  j  a v a  2 s .c  o m
    String message = "This is a INFO test";
    String tag = "my.log.info";
    Log.d(tag, message);
    Log.i(tag, message);
    Log.w(tag, message);
    for (int i = 0; i < 200; i++) {
        Log.w("" + i);
    }
    List<String> list = Log.getReportedEntries();
    Assert.assertNotNull(list);
    Assert.assertFalse(list.isEmpty());
    Assert.assertEquals(25, list.size());

    Log.report();
    Log.report("this is a user message", null);
    Exception error = new MalformedChallengeException("error message", new NumberFormatException());
    Log.report(null, error);
}

From source file:de.akquinet.gomobile.androlog.test.PostReporterTest.java

public void testPostWithLongLog() {
    Log.init(getContext());//  w  w w . j  a  v  a2s  .  c  om
    String message = "This is a INFO test";
    String tag = "my.log.info";
    Log.d(tag, message);
    Log.i(tag, message);
    Log.w(tag, message);
    for (int i = 0; i < 200; i++) {
        Log.w("" + i);
    }
    List<String> list = Log.getReportedEntries();
    Assert.assertNotNull(list);
    Assert.assertFalse(list.isEmpty());
    Assert.assertEquals(25, list.size());

    Log.report();
    Log.report("this is a user message", null);
    Exception error = new MalformedChallengeException("error message", new NumberFormatException());
    Log.report(null, error);
}