Kopīgot, izmantojot


BotAssert Class

  • java.lang.Object
    • com.microsoft.bot.builder.BotAssert

public final class BotAssert

Provides methods for debugging Bot Builder code.

Method Summary

Modifier and Type Method and Description
static void activityListNotNull(List<Activity> activities)

Checks that an activity collection is not null.

static void activityNotNull(Activity activity)

Checks that an activity object is not null.

static void contextNotNull(TurnContext context)

Checks that a context object is not null.

static void conversationReferenceNotNull(ConversationReference reference)

Checks that a conversation reference object is not null.

static void middlewareNotNull(Middleware middleware)

Checks that a middleware object is not null.

static void middlewareNotNull(ArrayList<Middleware> middleware)

Checks that a middleware collection is not null.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

activityListNotNull

public static void activityListNotNull(List activities)

Checks that an activity collection is not null.

Parameters:

activities - The activities.

activityNotNull

public static void activityNotNull(Activity activity)

Checks that an activity object is not null.

Parameters:

activity - The activity object.

contextNotNull

public static void contextNotNull(TurnContext context)

Checks that a context object is not null.

Parameters:

context - The context object.

conversationReferenceNotNull

public static void conversationReferenceNotNull(ConversationReference reference)

Checks that a conversation reference object is not null.

Parameters:

reference - The conversation reference object.

middlewareNotNull

public static void middlewareNotNull(Middleware middleware)

Checks that a middleware object is not null.

Parameters:

middleware - The middleware object.

middlewareNotNull

public static void middlewareNotNull(ArrayList middleware)

Checks that a middleware collection is not null.

Parameters:

middleware - The middleware.

Applies to