test_class.declarator: model
test_class.modifier: private
test_class.original_string: private ProvinceModel model;
test_class.type: ProvinceModel
test_class.var_name: model
test_class.declarator: cities
test_class.modifier: private
test_class.original_string: private CityModel[] cities;
test_class.type: CityModel[]
test_class.var_name: cities
test_class.file: app/src/test/java/com/brucetoo/pickview/provincepick/ProvinceModelTest.java
test_class.identifier: ProvinceModelTest
test_class.superclass: extends PickViewTestSupport
test_case.body: @Test
      public void testAddCity() {
          // when empty then
          assertEquals(0, model.getCityCount());
  
          // when
          model.addCity(null);
          assertEquals(0, model.getCityCount());
  
          // when
          model.addCity(new CityModel());
          // then
          assertEquals(1, model.getCityCount());
  
          // when
          for (CityModel city : cities) {
              model.addCity(city);
          }
  
          // then
          assertEquals(CITIES_NUM + 1, model.getCityCount());
      }
test_case.class_method_signature: ProvinceModelTest.testAddCity()
test_case.full_signature: @Test public void testAddCity()
test_case.identifier: testAddCity
test_case.invocations: assertEquals getCityCount addCity assertEquals getCityCount addCity assertEquals getCityCount addCity assertEquals getCityCount
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAddCity()
focal_class.declarator: id
focal_class.modifier: public
focal_class.original_string: public String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: name
focal_class.modifier: public
focal_class.original_string: public String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: mCityList
focal_class.modifier: private
focal_class.original_string: private ArrayList<CityModel> mCityList;
focal_class.type: ArrayList<CityModel>
focal_class.var_name: mCityList
focal_class.file: app/src/main/java/com/brucetoo/pickview/provincepick/ProvinceModel.java
focal_class.identifier: ProvinceModel
focal_class.interfaces: implements PickerItem
focal_class.class_method_signature: ProvinceModel.addCity(CityModel city)
focal_class.full_signature: public void addCity(CityModel city)
focal_class.identifier: addCity
focal_class.modifiers: public
focal_class.parameters: (CityModel city)
focal_class.return: void
focal_class.signature: void addCity(CityModel city)
focal_class.class_method_signature: ProvinceModel.getCity(int position)
focal_class.full_signature: public CityModel getCity(int position)
focal_class.identifier: getCity
focal_class.modifiers: public
focal_class.parameters: (int position)
focal_class.return: CityModel
focal_class.signature: CityModel getCity(int position)
focal_class.class_method_signature: ProvinceModel.getCityList()
focal_class.full_signature: public ArrayList<CityModel> getCityList()
focal_class.identifier: getCityList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ArrayList<CityModel>
focal_class.signature: ArrayList<CityModel> getCityList()
focal_class.class_method_signature: ProvinceModel.getCityCount()
focal_class.full_signature: public int getCityCount()
focal_class.identifier: getCityCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCityCount()
focal_class.class_method_signature: ProvinceModel.getCityIdList()
focal_class.full_signature: public List<String> getCityIdList()
focal_class.identifier: getCityIdList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getCityIdList()
focal_class.class_method_signature: ProvinceModel.getCityNameList()
focal_class.full_signature: public List<String> getCityNameList()
focal_class.identifier: getCityNameList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getCityNameList()
focal_class.class_method_signature: ProvinceModel.getText()
focal_class.full_signature: @Override public String getText()
focal_class.identifier: getText
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getText()
focal_class.class_method_signature: ProvinceModel.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public void addCity(CityModel city) {
  
  		if (null == city)
  			return;
  
  		if (null == mCityList)
  			mCityList = new ArrayList<CityModel>();
  
  		mCityList.add(city);
  	}
focal_method.class_method_signature: ProvinceModel.addCity(CityModel city)
focal_method.full_signature: public void addCity(CityModel city)
focal_method.identifier: addCity
focal_method.invocations: add
focal_method.modifiers: public
focal_method.parameters: (CityModel city)
focal_method.return: void
focal_method.signature: void addCity(CityModel city)