Fix BasicNfcEeTest java package.

It was in com.android.nfc_extras, which caused it to get bundled with
com.android.nfc_extras.jar, which caused all kinds of confusion when
trying to push new versions of the test.

It should be in com.android.nfc_extras.tests

Also fix getContext() -> getTargetContext().

Change-Id: I1e3afa150809a3ed8c4f88531f039fe7797aca1d
This commit is contained in:
Nick Pelly
2011-12-07 09:39:26 -08:00
parent 7da48db9c5
commit 09588f64a2

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.android.nfc_extras;
package com.android.nfc_extras.tests;
import android.content.Context;
import android.nfc.NfcAdapter;
@@ -48,7 +48,7 @@ public class BasicNfcEeTest extends InstrumentationTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
mContext = getInstrumentation().getContext();
mContext = getInstrumentation().getTargetContext();
mAdapterExtras = NfcAdapterExtras.get(NfcAdapter.getDefaultAdapter(mContext));
mEe = mAdapterExtras.getEmbeddedExecutionEnvironment();
}