Posts by Fernando Schelb • 187 points
8 posts
-
1
votes1
answer587
viewsA: Mock non-static method of a class containing a call from another static method
I was able to find the solution. As he was calling the method before, I put a @Beforeclass as below: @RunWith(PowerMockRunner.class) @PrepareForTest( { ClasseA.class,ClasseB.class }) public class…
-
1
votes1
answer587
viewsQ: Mock non-static method of a class containing a call from another static method
Hello, The title got a little fuzzy, but come on. I have the class below: public class ClasseA { public static final int constA = ClasseB.metodoB(); public int metodoA(){ System.out.println("Passei…
-
2
votes2
answers1914
viewsQ: Always ask for password in Git Bash Windows
I wonder if there’s a way my Git Bash can always ask for my password on Windows. I don’t want it to record for anything.
-
4
votes1
answer123
viewsQ: When to do unit tests in Javascript?
As far as it is advantageous to do unit testing in the presentation layer, and, what would be the scenarios where unit testing in Javascript is advantageous? Only advantageous if you have…
-
0
votes1
answer58
viewsA: Sharedpreference calling an Activity
I don’t know if I understand the question, but Sharedpreferences is used as a form of file persistence, usually used to save user data, but can record any information using it to file. For more…
-
7
votes2
answers7090
viewsQ: How to definitely remove a project in Android Studio?
I would like to definitely remove a project from Android Studio, I notice that on the homepage below, if you have a selected project and press Delete, the project is removed from the list, but I…
-
3
votes1
answer250
viewsQ: First element in listview does not appear
I have a listview that lists through an Adapter. The list is updated after a Sqlite search. The problem is that it only appears from the second element of my table.... someone could help me?…
-
0
votes1
answer78
viewsQ: Doubt about how to turn a gridView object into non-clickable
Hello, I have a gridView I built with an Adapter I inherited from Basedapter. I want my Activity, when you click on an item (I have 16 in total in mine), to make other items clickable and vice…