@@ -87,8 +87,8 @@ public void oldStyleTextureParameters_shouldBeSupported() throws Exception {
8787 final Texture textureOldStyle = Mockito .mock (Texture .class );
8888 final Texture textureOldStyleUsingQuotes = Mockito .mock (Texture .class );
8989
90- final TextureKey textureKeyUsingQuotes = setupMockForTexture ("OldStyleUsingQuotes" , "old style using quotes/texture.png" , true , textureOldStyleUsingQuotes );
91- final TextureKey textureKeyOldStyle = setupMockForTexture ("OldStyle" , "old style/texture.png" , true , textureOldStyle );
90+ final TextureKey textureKeyUsingQuotes = setupMockForTexture ("OldStyleUsingQuotes" , "old style using quotes/texture.png" , true , true , textureOldStyleUsingQuotes );
91+ final TextureKey textureKeyOldStyle = setupMockForTexture ("OldStyle" , "old style/texture.png" , true , true , textureOldStyle );
9292
9393 j3MLoader .load (assetInfo );
9494
@@ -111,14 +111,14 @@ public void newStyleTextureParameters_shouldBeSupported() throws Exception {
111111 final Texture textureCombined = Mockito .mock (Texture .class );
112112 final Texture textureLooksLikeOldStyle = Mockito .mock (Texture .class );
113113
114- final TextureKey textureKeyNoParameters = setupMockForTexture ("Empty" , "empty.png" , false , textureNoParameters );
115- final TextureKey textureKeyFlip = setupMockForTexture ("Flip" , "flip.png" , true , textureFlip );
116- setupMockForTexture ("Repeat" , "repeat.png" , false , textureRepeat );
117- setupMockForTexture ("RepeatAxis" , "repeat-axis.png" , false , textureRepeatAxis );
118- setupMockForTexture ("Min" , "min.png" , false , textureMin );
119- setupMockForTexture ("Mag" , "mag.png" , false , textureMag );
120- setupMockForTexture ("Combined" , "combined.png" , true , textureCombined );
121- setupMockForTexture ("LooksLikeOldStyle" , "oldstyle.png" , true , textureLooksLikeOldStyle );
114+ final TextureKey textureKeyNoParameters = setupMockForTexture ("Empty" , "empty.png" , false , true , textureNoParameters );
115+ final TextureKey textureKeyFlip = setupMockForTexture ("Flip" , "flip.png" , true , true , textureFlip );
116+ setupMockForTexture ("Repeat" , "repeat.png" , false , true , textureRepeat );
117+ setupMockForTexture ("RepeatAxis" , "repeat-axis.png" , false , true , textureRepeatAxis );
118+ setupMockForTexture ("Min" , "min.png" , false , true , textureMin );
119+ setupMockForTexture ("Mag" , "mag.png" , false , true , textureMag );
120+ setupMockForTexture ("Combined" , "combined.png" , true , false , textureCombined );
121+ setupMockForTexture ("LooksLikeOldStyle" , "oldstyle.png" , true , true , textureLooksLikeOldStyle );
122122
123123 j3MLoader .load (assetInfo );
124124
@@ -135,11 +135,11 @@ public void newStyleTextureParameters_shouldBeSupported() throws Exception {
135135 verify (textureCombined ).setWrap (Texture .WrapMode .Repeat );
136136 }
137137
138- private TextureKey setupMockForTexture (final String paramName , final String path , final boolean flipY , final Texture texture ) {
138+ private TextureKey setupMockForTexture (final String paramName , final String path , final boolean flipY , boolean generateMips , final Texture texture ) {
139139 when (materialDef .getMaterialParam (paramName )).thenReturn (new MatParamTexture (VarType .Texture2D , paramName , texture , null ));
140140
141141 final TextureKey textureKey = new TextureKey (path , flipY );
142- textureKey .setGenerateMips (true );
142+ textureKey .setGenerateMips (generateMips );
143143
144144 when (assetManager .loadTexture (textureKey )).thenReturn (texture );
145145
0 commit comments