After upgrading specs2 to 2.10 matcher 'haveTheSameElementsAs' seems lost

StackOverflow https://stackoverflow.com/questions/23154792

  •  05-07-2023
  •  | 
  •  

سؤال

Recently I have upgraded my specs2 to 2.10-2.3.11 and apparently after that compiler can't recognize matcher must haveTheSameElementsAs. I couldn't find where they moved it or similar matcher in specs2. Any idea where is it/ what I should use instead of that one?

هل كانت مفيدة؟

المحلول

You must use collection must contain(exactly(collection2:_*)).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top