use of com.amplifyframework.predictions.PredictionsCategory in project amplify-android by aws-amplify.
the class AWSPredictionsInterpretTest method setUp.
/**
* Configure Predictions category before each test.
* @throws Exception if mobile client initialization fails
*/
@Before
public void setUp() throws Exception {
Context context = getApplicationContext();
// Set up Auth
SynchronousMobileClient.instance().initialize();
// Delegate to Predictions category
PredictionsCategory asyncDelegate = TestPredictionsCategory.create(context, R.raw.amplifyconfiguration);
predictions = SynchronousPredictions.delegatingTo(asyncDelegate);
}
use of com.amplifyframework.predictions.PredictionsCategory in project amplify-android by aws-amplify.
the class AWSPredictionsTextToSpeechTest method setUp.
/**
* Configure Predictions category before each test.
* @throws Exception if mobile client initialization fails
*/
@Before
public void setUp() throws Exception {
Context context = getApplicationContext();
// Set up Auth
SynchronousMobileClient.instance().initialize();
// Delegate to Predictions category
PredictionsCategory asyncDelegate = TestPredictionsCategory.create(context, R.raw.amplifyconfiguration);
predictions = SynchronousPredictions.delegatingTo(asyncDelegate);
}
use of com.amplifyframework.predictions.PredictionsCategory in project amplify-android by aws-amplify.
the class AWSPredictionsIdentifyCelebritiesTest method setUp.
/**
* Configure Predictions category before each test.
* @throws Exception if mobile client initialization fails
*/
@Before
public void setUp() throws Exception {
Context context = getApplicationContext();
// Set up Auth
SynchronousMobileClient.instance().initialize();
// Delegate to Predictions category
PredictionsCategory asyncDelegate = TestPredictionsCategory.create(context, R.raw.amplifyconfiguration);
predictions = SynchronousPredictions.delegatingTo(asyncDelegate);
}
use of com.amplifyframework.predictions.PredictionsCategory in project amplify-android by aws-amplify.
the class AWSPredictionsIdentifyEntitiesTest method setUp.
/**
* Configure Predictions category before each test.
* @throws Exception if mobile client initialization fails
*/
@Before
public void setUp() throws Exception {
Context context = getApplicationContext();
// Set up Auth
SynchronousMobileClient.instance().initialize();
// Delegate to Predictions category
PredictionsCategory asyncDelegate = TestPredictionsCategory.create(context, R.raw.amplifyconfiguration);
predictions = SynchronousPredictions.delegatingTo(asyncDelegate);
}
use of com.amplifyframework.predictions.PredictionsCategory in project amplify-android by aws-amplify.
the class AWSPredictionsIdentifyLabelsTest method setUp.
/**
* Configure Predictions category before each test.
* @throws Exception if mobile client initialization fails
*/
@Before
public void setUp() throws Exception {
Context context = getApplicationContext();
// Set up Auth
SynchronousMobileClient.instance().initialize();
// Delegate to Predictions category
PredictionsCategory asyncDelegate = TestPredictionsCategory.create(context, R.raw.amplifyconfiguration);
predictions = SynchronousPredictions.delegatingTo(asyncDelegate);
}
Aggregations