test_class.declarator: provinceInfoParserTask
test_class.modifier: private
test_class.original_string: private ProvinceInfoParserTask provinceInfoParserTask;
test_class.type: ProvinceInfoParserTask
test_class.var_name: provinceInfoParserTask
test_class.declarator: mockContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Context mockContext;
test_class.type: Context
test_class.var_name: mockContext
test_class.declarator: mockAssetManager
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AssetManager mockAssetManager;
test_class.type: AssetManager
test_class.var_name: mockAssetManager
test_class.declarator: mockHandler
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Handler mockHandler;
test_class.type: Handler
test_class.var_name: mockHandler
test_class.declarator: mockMessage
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Message mockMessage;
test_class.type: Message
test_class.var_name: mockMessage
test_class.declarator: provinces
test_class.modifier: private
test_class.original_string: private List<ProvinceModel> provinces;
test_class.type: List<ProvinceModel>
test_class.var_name: provinces
test_class.file: app/src/test/java/com/brucetoo/pickview/provincepick/utils/ProvinceInfoParserTaskTest.java
test_class.identifier: ProvinceInfoParserTaskTest
test_class.superclass: extends PickViewTestSupport
test_case.body: @Test
      public void testDoInBackgroundWithNullContext() {
          // given
          Whitebox.setInternalState(provinceInfoParserTask, "mContext", null);
  
          // when
          List<ProvinceModel> actual = provinceInfoParserTask.doInBackground();
  
          // then
          assertNull(actual);
      }
test_case.class_method_signature: ProvinceInfoParserTaskTest.testDoInBackgroundWithNullContext()
test_case.full_signature: @Test public void testDoInBackgroundWithNullContext()
test_case.identifier: testDoInBackgroundWithNullContext
test_case.invocations: setInternalState doInBackground assertNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDoInBackgroundWithNullContext()
focal_class.declarator: MSG_PARSE_RESULT_CALLBACK = 0x100
focal_class.modifier: public static final
focal_class.original_string: public static final int MSG_PARSE_RESULT_CALLBACK = 0x100;
focal_class.type: int
focal_class.var_name: MSG_PARSE_RESULT_CALLBACK
focal_class.declarator: mContext
focal_class.modifier: private
focal_class.original_string: private Context mContext;
focal_class.type: Context
focal_class.var_name: mContext
focal_class.declarator: mHandler
focal_class.modifier: private
focal_class.original_string: private Handler mHandler;
focal_class.type: Handler
focal_class.var_name: mHandler
focal_class.file: app/src/main/java/com/brucetoo/pickview/provincepick/utils/ProvinceInfoParserTask.java
focal_class.identifier: ProvinceInfoParserTask
focal_class.class_method_signature: ProvinceInfoParserTask.ProvinceInfoParserTask(Context context, Handler handler)
focal_class.full_signature: public  ProvinceInfoParserTask(Context context, Handler handler)
focal_class.identifier: ProvinceInfoParserTask
focal_class.modifiers: public
focal_class.parameters: (Context context, Handler handler)
focal_class.signature:  ProvinceInfoParserTask(Context context, Handler handler)
focal_class.class_method_signature: ProvinceInfoParserTask.doInBackground(Void... params)
focal_class.full_signature: @Override protected List<ProvinceModel> doInBackground(Void... params)
focal_class.identifier: doInBackground
focal_class.modifiers: @Override protected
focal_class.parameters: (Void... params)
focal_class.return: List<ProvinceModel>
focal_class.signature: List<ProvinceModel> doInBackground(Void... params)
focal_class.class_method_signature: ProvinceInfoParserTask.onPostExecute(List<ProvinceModel> result)
focal_class.full_signature: @Override protected void onPostExecute(List<ProvinceModel> result)
focal_class.identifier: onPostExecute
focal_class.modifiers: @Override protected
focal_class.parameters: (List<ProvinceModel> result)
focal_class.return: void
focal_class.signature: void onPostExecute(List<ProvinceModel> result)
focal_class.superclass: extends AsyncTask<Void, Void, List<ProvinceModel>>
focal_method.body: @Override
  	protected List<ProvinceModel> doInBackground(Void... params) {
  
  		if (null == mContext)
  			return null;
  
  		List<ProvinceModel> provinceList = new ArrayList<ProvinceModel>();
  
  		try {
  			SAXParserFactory sax = SAXParserFactory.newInstance();// 创建解析器
  			XMLReader reader = sax.newSAXParser().getXMLReader();
  			InputStream in = mContext.getAssets().open("city.xml");
  
  			reader.setContentHandler(new ProvinceInfoHandler(provinceList));// 为reader设置内容处理器
  			reader.parse(new InputSource(in));// 开始解析文件
  		} catch (SAXException e) {
  
  			e.printStackTrace();
  		} catch (IOException e) {
  
  			e.printStackTrace();
  		} catch (ParserConfigurationException e) {
  
  			e.printStackTrace();
  		}
  
  		return provinceList;
  	}
focal_method.class_method_signature: ProvinceInfoParserTask.doInBackground(Void... params)
focal_method.full_signature: @Override protected List<ProvinceModel> doInBackground(Void... params)
focal_method.identifier: doInBackground
focal_method.invocations: newInstance getXMLReader newSAXParser open getAssets setContentHandler parse printStackTrace printStackTrace printStackTrace
focal_method.modifiers: @Override protected
focal_method.parameters: (Void... params)
focal_method.return: List<ProvinceModel>
focal_method.signature: List<ProvinceModel> doInBackground(Void... params)