Posts by Araújo Filho • 329 points
15 posts
-
0
votes1
answer16
viewsA: Running Ionic build Ios on macOS with Node 7 I get a message 'stdout maxBuffer exceeded'. How to resolve?
I found the solution, apparently the amount of simulators I had in Xcode was exceeding the json that needed to be printable in the build. If the list of simulators exceeds 200KB the Node 7 does not…
-
-1
votes1
answer16
viewsQ: Running Ionic build Ios on macOS with Node 7 I get a message 'stdout maxBuffer exceeded'. How to resolve?
Suddenly I started having this problem when I try to build my app with ionic build ios . I don’t understand what might have happened because it was running normal one day, but the next day it…
-
1
votes2
answers1288
viewsA: Execution cannot find 'org.junit.Assert' even if you have the Junit jar in classpath
I found the solution in Stackoverflow in English. I just removed the Junit dependency scope tag in my pom where I had <scope>test</scope>. Follow the link to the answer:…
-
3
votes2
answers1288
viewsQ: Execution cannot find 'org.junit.Assert' even if you have the Junit jar in classpath
I have a problem that I’ve done a lot of research on and I haven’t found the answer to yet. I have a test case I’m trying to run and send a message to the console. But even though he has Junit’s…
-
1
votes4
answers340
viewsQ: Is there a way to set width specified in html as the max-width of this element in css?
The problem is this: I have the following html: <div class="page-left-col"> <p> <img src="/localhost/Department%20Pages/Communications/News/LearnStorm%20Rally.jpg" style="display:…
-
2
votes1
answer3707
viewsA: How to get the result of a Junit assertEquals test and put it into a String variable?
@Test public void myTest() throws Exception{ String assertionError = null; try { Assert.assertEquals(2,3); } catch (AssertionError ae) { assertionError = ae.toString(); }…
-
0
votes1
answer3707
viewsQ: How to get the result of a Junit assertEquals test and put it into a String variable?
I have a Junit test case to test a single class. The class to be tested contains only one "sum" method that sums two numbers. To test if it is correct, I use the following method:…
-
0
votes1
answer215
viewsQ: Problem calling method from a newly loaded class
I made a code that dynamically compiles a java file, and through . class generated can load this class, create an instance and invoke its methods using the method getDeclaredMethod(). So far so…
-
7
votes2
answers736
viewsQ: What is the advantage of using Junit to test methods in a class?
I created an application that is basically a class that tests if the methods of another class are returning the expected values. My teacher asked me to remake this class as a Junit test case. I did…
-
3
votes1
answer516
viewsQ: Is it possible to load classes dynamically and use them as a type?
I’m trying to make a code that loads classes dynamically and can use them to create instances and be used for cast. I can create an instance in the newly loaded class using the method…
-
2
votes2
answers177
viewsA: Issue with JAVAC version for dynamic build
Finally I managed to solve my problem. It seems that by default the eclipse matters only jre jars. So I had to add as an external jar the 'tools.jar' file that is in my jdk folder.…
-
-1
votes2
answers177
viewsQ: Issue with JAVAC version for dynamic build
I’m trying to compile a Helloworld class for testing, and it’s giving an error that I don’t know how to solve. Does anyone know a solution? From the looks of it, it’s some version-related problem.…
-
3
votes1
answer355
viewsQ: Import java classes to a project automatically?
I wonder if there is any way to automatically import java classes from a given local directory for my current project. For example: Let’s say that when I press a "Import" button in my application,…
-
1
votes2
answers2173
viewsQ: Import class that is not inside an eclipse project
I wonder if there is a way to import and instantiate an object of a class that is, for example, inside a folder in my files and not in a project inside the eclipse.
-
2
votes1
answer331
viewsQ: Create a web application that runs Junit test cases on java files that will be submitted by a page?
I’m trying to create an application that looks like a judge online, but all I want is that after submitting a java file through an html or jsp page, the application runs a certain Junit test case on…