Skip to content

Commit 80d8291

Browse files
committed
Code coverage was not working in HTTP proc in Java
Issue: 201799 (cherry picked from commit 5dc783f)
1 parent 04e0c5e commit 80d8291

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

gxweb/src/main/java/com/genexus/webpanels/GXWebObjectBase.java

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
import com.genexus.configuration.ConfigurationManager;
77
import com.genexus.diagnostics.core.ILogger;
88
import com.genexus.diagnostics.core.LogManager;
9-
import com.genexus.diagnostics.GXDebugInfo;
10-
import com.genexus.diagnostics.GXDebugManager;
119
import com.genexus.internet.HttpAjaxContext;
1210
import com.genexus.internet.GXInternetConstants;
1311
import com.genexus.internet.HttpContext;
@@ -214,41 +212,6 @@ protected String getPgmInstanceId(String cmpCtx)
214212
return String.format("%s%s", cmpCtx, this.getPgmname().toUpperCase());
215213
}
216214

217-
private GXDebugInfo dbgInfo = null;
218-
protected void trkCleanup()
219-
{
220-
if(dbgInfo != null)
221-
dbgInfo.onCleanup();
222-
}
223-
224-
protected void initialize(int objClass, int objId, int dbgLines, long hash)
225-
{
226-
dbgInfo = GXDebugManager.getInstance().getDbgInfo(context, objClass, objId, dbgLines, hash);
227-
}
228-
229-
protected void trk(int lineNro)
230-
{
231-
if(dbgInfo != null)
232-
dbgInfo.trk(lineNro);
233-
}
234-
235-
protected void trk(int lineNro, int lineNro2)
236-
{
237-
if(dbgInfo != null)
238-
dbgInfo.trk(lineNro, lineNro2);
239-
}
240-
241-
protected void trkrng(int lineNro, int lineNro2)
242-
{
243-
trkrng(lineNro, 0, lineNro2, 0);
244-
}
245-
246-
protected void trkrng(int lineNro, int colNro, int lineNro2, int colNro2)
247-
{
248-
if(dbgInfo != null)
249-
dbgInfo.trkRng(lineNro, colNro, lineNro2, colNro2);
250-
}
251-
252215
protected void callWebObject(String url)
253216
{
254217
httpContext.wjLoc = url;

java/src/main/java/com/genexus/GXObjectBase.java

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import com.genexus.db.Namespace;
44
import com.genexus.db.UserInformation;
5+
import com.genexus.diagnostics.GXDebugInfo;
6+
import com.genexus.diagnostics.GXDebugManager;
57
import com.genexus.diagnostics.core.ILogger;
68
import com.genexus.diagnostics.core.LogManager;
79
import com.genexus.internet.HttpContext;
@@ -224,4 +226,39 @@ public void submit(int id, Object [] submitParms){
224226
}
225227
public void submitReorg(int id, Object [] submitParms) throws SQLException {
226228
}
229+
230+
private GXDebugInfo dbgInfo = null;
231+
protected void trkCleanup()
232+
{
233+
if(dbgInfo != null)
234+
dbgInfo.onCleanup();
235+
}
236+
237+
protected void initialize(int objClass, int objId, int dbgLines, long hash)
238+
{
239+
dbgInfo = GXDebugManager.getInstance().getDbgInfo(context, objClass, objId, dbgLines, hash);
240+
}
241+
242+
protected void trk(int lineNro)
243+
{
244+
if(dbgInfo != null)
245+
dbgInfo.trk(lineNro);
246+
}
247+
248+
protected void trk(int lineNro, int lineNro2)
249+
{
250+
if(dbgInfo != null)
251+
dbgInfo.trk(lineNro, lineNro2);
252+
}
253+
254+
protected void trkrng(int lineNro, int lineNro2)
255+
{
256+
trkrng(lineNro, 0, lineNro2, 0);
257+
}
258+
259+
protected void trkrng(int lineNro, int colNro, int lineNro2, int colNro2)
260+
{
261+
if(dbgInfo != null)
262+
dbgInfo.trkRng(lineNro, colNro, lineNro2, colNro2);
263+
}
227264
}

0 commit comments

Comments
 (0)