Code example for Spinner

0
			inflationErrorsExpectations.add(errorExpectation);
		} 
		 
		private void addSpinnerAndExpectations() 
		{ 
			Spinner spinner = new Spinner(context);
			 
			bindingViewInflaterBuilder.withOnViewCreatedInvocation(
					spinner, 
					aBindingAttributeSet() 
						//binding phase. 
						.withAttribute("itemLayout", "{propertyPointingToNoExistentLayout}") 
						.build()); 
			 
			ViewInflationErrorsExpectation errorExpectation = aBindingViewInflationErrorExpectationOf(spinner)
					.withMissingRequiredAttributesResolutionErrorOf("source", "dropdownLayout") 
					.build(); 
			inflationErrorsExpectations.add(errorExpectation);
		} 
	}