mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Injected the CategoryDao where needed.
This commit is contained in:
		
							parent
							
								
									feb435304f
								
							
						
					
					
						commit
						1d3befcbd2
					
				
					 4 changed files with 35 additions and 19 deletions
				
			
		|  | @ -50,20 +50,20 @@ import static org.mockito.Mockito.when; | |||
| public class CategoryDaoTest { | ||||
| 
 | ||||
|     @Mock | ||||
|     ContentProviderClient client; | ||||
|     private ContentProviderClient client; | ||||
|     @Mock | ||||
|     SQLiteDatabase database; | ||||
|     private SQLiteDatabase database; | ||||
|     @Captor | ||||
|     ArgumentCaptor<ContentValues> captor; | ||||
|     private ArgumentCaptor<ContentValues> captor; | ||||
|     @Captor | ||||
|     ArgumentCaptor<String[]> queryCaptor; | ||||
|     private ArgumentCaptor<String[]> queryCaptor; | ||||
| 
 | ||||
|     private CategoryDao testObject; | ||||
| 
 | ||||
|     @Before | ||||
|     public void setUp() throws Exception { | ||||
|         MockitoAnnotations.initMocks(this); | ||||
|         testObject = new CategoryDao(client); | ||||
|         testObject = new CategoryDao(() -> client); | ||||
|     } | ||||
| 
 | ||||
|     @Test | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Paul Hawke
						Paul Hawke