Skip to content

Commit

Permalink
updated JACOBIN-0626-DumpObject-DumpStatics
Browse files Browse the repository at this point in the history
  • Loading branch information
texadactyl committed Nov 28, 2024
1 parent 75c725e commit be0597a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This file is a version history of jacotest amendments. Entries appear in versio
| `Date` | `Version` | `Contents` |
| :------------: | :---: | :--- |
|<img width=90/>|<img width=60/>|<img width=600/>|
| 2024-11-28 | 3.4.26 | Updated test case: JACOBIN-0626-DumpObject-DumpStatics. |
| 2024-11-27 | 3.4.25 | New test case: JACOBIN-0626-DumpObject-DumpStatics. |
| 2024-11-23 | 3.4.24 | New test case: ex-catch-plus-jj. |
| 2024-11-22 | 3.4.23 | New test cases: elliptic-1 and elliptic-2. |
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.4.25
v3.4.26
37 changes: 30 additions & 7 deletions tests/JACOBIN-0626-DumpObject-DumpStatics/main.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
public class main {

private static int mainClassInt = 1;
private static final double mainClassDouble = 2.0;
private static String mainClassString = "three";

public static void main(String[] args) {

MyClass myObject = new MyClass();
jj._dumpObject(myObject, "My Title", 0);
int mainFunInt = 1;
final double mainFunDouble = 2.0;
String mainFunString = "three";

KlassKambing objKambing = new KlassKambing();
System.out.println("=========================== jj._dumpObject(objKambing...) begin");
jj._dumpObject(objKambing, "objKambing from KlassKambing", 0);
System.out.println("=========================== jj._dumpObject(objKambing...) end");

main objMain = new main();
System.out.println("=========================== jj._dumpObject(objMain...) begin");
jj._dumpObject(objMain, "Second main object", 0);
System.out.println("=========================== jj._dumpObject(objMain...) end");

jj._dumpStatics("Statics Dump", 3, "");

}

}

private void fun() {
int funInt = 1;
double funDouble = 2.0;
String funString = "three";
}
}

class jj {
Expand All @@ -17,9 +40,9 @@ public static void _dumpObject(Object obj, String title, int indent) {
}
}

class MyClass {
class KlassKambing {
int alaska = 1;
int Abraham = 2;
int aBEL = 3;
double Abraham = 2.0;
String aBEL = "three";
}

0 comments on commit be0597a

Please sign in to comment.