前提・実現したいこと
DBUnitを利用してテストを行いたいのですが、テストケースを記述したxmlファイルのエラーを
取り除くことができません
エラーの意味は理解できているのですが、どこが間違っているのかわかりません
発生している問題・エラーメッセージ
メッセージ全文
org.dbunit.dataset.DataSetException: Line 3: Element type "dat_site" must be followed by either attribute specifications, ">" or "/>".
該当のソースコード
<?xml version= "1.0" encoding="EUC-JP"?> <dataset> <dat_site site_num='10000' house_name='TEST' order_date='2019-07-31' contract_date='2019-02-26' transfer_date= '2019-12-12' bedsil_laying_date='2019-09-03' frame_raising_scheduled_date= '2019-08-22' frame_raising_date='2019-09-07' frame_raising_changed_date='[NULL]' sv_charge_cd= '504424' sv_charge_name= 'TESTSV' sv_charge_phone_num= 'XXXXX' site_postal_cd= '[NULL]' site_address= 'XXXXX' customer_cd= '2426P03' customer_name= 'XXXXX' customer_address= 'XXXXX' phone_number= 'XXXXX' fax_num= 'XXXXX' eng_firm_person_charge_cd='[NULL]' eng_firm_person_charge_name= '[NULL]' person_charge_phone_num= '[NULL]' eng_firm_person_email= '[NULL]' salesman_charge_cd= '[NULL]' salesman_charge_name= 'TESTCharge' salesman_phone_num= '[NULL]' salesman_email= 'XXXXX' site_cd= '2426C04' brand_name= 'FREEQ' plan_cd= 'XXXXX' plan_name= 'XXXXX' area= 'XXXXX' order_state_cd= '5' pre_order_agree_date= '2019-07-16' accessory_sheet_agree_date='2019-07-16' dely_schedule_registered_date= '2019-07-31' purchase_order_registered_date= '2019-04-19' member_agree_date= '2019-07-31' sv_charge_agree_date='[NULL]' member_confirm_date='[NULL]' sv_charge_confirm_date= '2019-08-08' truck_cd= '4' view_flg='0' housing_cd='0' nocheck_cd='1' output_date= '2019-08-08 14:58:05.448' update_datetime= '2019-08-10 09:47:11.404' transfer_changed_date='[NULL]' bedsil_laying_changed_date='[NULL]' transfer_scheduled_date= '2019-12-12' bedsil_laying_scheduled_date= '2019-08-17' brand_num='8' estimate_cd='0' /> <dat_site site_num='10001' house_name='TEST' order_date= '2019-07-31' contract_date= '2019-02-26' transfer_date= '2019-12-12' bedsil_laying_date= '2019-09-03' frame_raising_scheduled_date= '2019-08-22' frame_raising_date= '2019-09-07' frame_raising_changed_date='[NULL]' sv_charge_cd= '504424' sv_charge_name= 'TESTSV' sv_charge_phone_num= 'XXXXX' site_postal_cd= '[NULL]' site_address= 'XXXXX' customer_cd= '2426P03' customer_name= 'XXXXX' customer_address= 'XXXXX' phone_number= 'XXXXX' fax_num= 'XXXXX' eng_firm_person_charge_cd='[NULL]' eng_firm_person_charge_name= '[NULL]' person_charge_phone_num= '[NULL]' eng_firm_person_email= '[NULL]' salesman_charge_cd= '[NULL]' salesman_charge_name= 'TESTCharge' salesman_phone_num= '[NULL]' salesman_email= 'XXXXX' site_cd= '2426C04' brand_name= 'FREEQ' plan_cd= 'XXXXX' plan_name= 'XXXXX' area= 'XXXXX' order_state_cd= '5' pre_order_agree_date= '2019-07-16' accessory_sheet_agree_date='2019-07-16' dely_schedule_registered_date= '2019-07-31' purchase_order_registered_date= '2019-04-19' member_agree_date= '2019-07-31' sv_charge_agree_date='[NULL]' member_confirm_date='[NULL]' sv_charge_confirm_date= '2019-08-08' truck_cd= '4' view_flg='0' housing_cd='0' nocheck_cd='1' output_date= '2019-08-08 14:58:05.448' update_datetime= '2019-08-10 09:47:11.404' transfer_changed_date='[NULL]' bedsil_laying_changed_date='[NULL]' transfer_scheduled_date= '2019-12-12' bedsil_laying_scheduled_date= '2019-08-17' brand_num='8' estimate_cd='0' /> <dat_site site_num='10000' house_name='TEST' order_date= '2019-07-31' contract_date= '2019-02-26' transfer_date= '2019-12-12' bedsil_laying_date= '2019-09-03' frame_raising_scheduled_date= '2019-08-22' frame_raising_date= '2019-09-07' frame_raising_changed_date='[NULL]' sv_charge_cd= '504424' sv_charge_name= 'TESTSV' sv_charge_phone_num= 'XXXXX' site_postal_cd= '[NULL]' site_address= 'XXXXX' customer_cd= '2426P03' customer_name= 'XXXXX' customer_address= 'XXXXX' phone_number= 'XXXXX' fax_num= 'XXXXX' eng_firm_person_charge_cd='[NULL]' eng_firm_person_charge_name= '[NULL]' person_charge_phone_num= '[NULL]' eng_firm_person_email= '[NULL]' salesman_charge_cd= '[NULL]' salesman_charge_name= 'TESTCharge' salesman_phone_num= '[NULL]' salesman_email= 'XXXXX' site_cd= '2426C04' brand_name= 'FREEQ' plan_cd= 'XXXXX' plan_name= 'XXXXX' area= 'XXXXX' order_state_cd= '5' pre_order_agree_date= '[NULL]' accessory_sheet_agree_date='2019-07-16' dely_schedule_registered_date= '2019-07-31' purchase_order_registered_date= '2019-04-19' member_agree_date= '2019-07-31' sv_charge_agree_date='[NULL]' member_confirm_date='[NULL]' sv_charge_confirm_date= '2019-08-08' truck_cd= '4' view_flg='0' housing_cd='0' nocheck_cd='1' output_date= '2019-08-08 14:58:05.448' update_datetime= '2019-08-10 09:47:11.404' transfer_changed_date='[NULL]' bedsil_laying_changed_date='[NULL]' transfer_scheduled_date= '2019-12-12' bedsil_laying_scheduled_date= '2019-08-17' brand_num='8' estimate_cd='0' /> <dat_site site_num='10000' house_name='TEST' order_date= '2019-07-31' contract_date= '2019-02-26' transfer_date= '2019-12-12' bedsil_laying_date= '2019-09-03' frame_raising_scheduled_date= '2019-08-22' frame_raising_date= '2019-09-07' frame_raising_changed_date='[NULL]' sv_charge_cd= '504424' sv_charge_name= 'TESTSV' sv_charge_phone_num= 'XXXXX' site_postal_cd= '[NULL]' site_address= 'XXXXX' customer_cd= '2426P03' customer_name= 'XXXXX' customer_address= 'XXXXX' phone_number= 'XXXXX' fax_num= 'XXXXX' eng_firm_person_charge_cd='[NULL]' eng_firm_person_charge_name= '[NULL]' person_charge_phone_num= '[NULL]' eng_firm_person_email= '[NULL]' salesman_charge_cd= '[NULL]' salesman_charge_name= 'TESTCharge' salesman_phone_num= '[NULL]' salesman_email= 'XXXXX' site_cd= '2426C04' brand_name= 'FREEQ' plan_cd= 'XXXXX' plan_name= 'XXXXX' area= 'XXXXX' order_state_cd= '5' pre_order_agree_date= '2019-07-16' accessory_sheet_agree_date='[NULL]' dely_schedule_registered_date= '2019-07-31' purchase_order_registered_date= '2019-04-19' member_agree_date= '2019-07-31' sv_charge_agree_date='[NULL]' member_confirm_date='[NULL]' sv_charge_confirm_date= '2019-08-08' truck_cd= '4' view_flg='0' housing_cd='0' nocheck_cd='1' output_date= '2019-08-08 14:58:05.448' update_datetime= '2019-08-10 09:47:11.404' transfer_changed_date='[NULL]' bedsil_laying_changed_date='[NULL]' transfer_scheduled_date= '2019-12-12' bedsil_laying_scheduled_date= '2019-08-17' brand_num='8' estimate_cd='0' /> <dat_site site_num='[NULL]' house_name='TEST' order_date= '2019-07-31' contract_date= '2019-02-26' transfer_date= '2019-12-12' bedsil_laying_date= '2019-09-03' frame_raising_scheduled_date= '2019-08-22' frame_raising_date= '2019-09-07' frame_raising_changed_date='[NULL]' sv_charge_cd= '504424' sv_charge_name= 'TESTSV' sv_charge_phone_num= 'XXXXX' site_postal_cd= '[NULL]' site_address= 'XXXXX' customer_cd= '2426P03' customer_name= 'XXXXX' customer_address= 'XXXXX' phone_number= 'XXXXX' fax_num= 'XXXXX' eng_firm_person_charge_cd='[NULL]' eng_firm_person_charge_name= '[NULL]' person_charge_phone_num= '[NULL]' eng_firm_person_email= '[NULL]' salesman_charge_cd= '[NULL]' salesman_charge_name= 'TESTCharge' salesman_phone_num= '[NULL]' salesman_email= 'XXXXX' site_cd= '2426C04' brand_name= 'FREEQ' plan_cd= 'XXXXX' plan_name= 'XXXXX' order_state_cd= '5' pre_order_agree_date= '[NULL]' accessory_sheet_agree_date='[NULL]' dely_schedule_registered_date= '2019-07-31' purchase_order_registered_date= '2019-04-19' member_agree_date= '2019-07-31' sv_charge_agree_date='[NULL]' member_confirm_date='[NULL]' sv_charge_confirm_date= '2019-08-08' truck_cd= '4' view_flg='0' housing_cd='0' nocheck_cd='1' output_date= '2019-08-08 14:58:05.448' update_datetime= '2019-08-10 09:47:11.404' transfer_changed_date='[NULL]' bedsil_laying_changed_date='[NULL]' transfer_scheduled_date= '2019-12-12' bedsil_laying_scheduled_date= '2019-08-17' brand_num='8' estimate_cd='0' /> </dataset>
試したこと
・全角が含まれないかのチェック
・余分なコーテーションがないかチェック
・タグに余計な空白が存在しないかチェック
・/>ではなく</dataset>に変更
以上を試しましたが出てくるエラーは変わりません
補足情報(FW/ツールのバージョンなど)
開発環境:intelliJ
XMLは初めて記述しました
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。