summaryrefslogtreecommitdiffstats
path: root/bindings/java
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:07:23 +0000
committerFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:07:23 +0000
commit0a00f098948550d238ce7a9660bd6d4fd169a74b (patch)
tree267a4999ee466826e9b56afe5d6320bde97fc8d7 /bindings/java
parent8f3eb17e52b1b9a99f8d817b022105bb2c4a09b6 (diff)
downloadlasso-0a00f098948550d238ce7a9660bd6d4fd169a74b.tar.gz
lasso-0a00f098948550d238ce7a9660bd6d4fd169a74b.tar.xz
lasso-0a00f098948550d238ce7a9660bd6d4fd169a74b.zip
[project @ fpeters@0d.be-20080225121334-yi07nl8kefuefhk9]
benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-02-25 13:13:34.475000+01:00
Diffstat (limited to 'bindings/java')
-rw-r--r--bindings/java/LassoException_top.java2
-rw-r--r--bindings/java/Makefile.am2
-rw-r--r--bindings/java/tests/LoginTest.java4
3 files changed, 4 insertions, 4 deletions
diff --git a/bindings/java/LassoException_top.java b/bindings/java/LassoException_top.java
index 19b4d8e0..8e08f43c 100644
--- a/bindings/java/LassoException_top.java
+++ b/bindings/java/LassoException_top.java
@@ -2,7 +2,7 @@ package com.entrouvert.lasso;
public class LassoException extends RuntimeException {
public int errorCode;
- private static boolean throws_for_recoverable_errors = false;
+ private static boolean throws_for_recoverable_errors = true;
/** If set to true, enables throwing of exception for
* recoverable errors, i.e. errors with a positive error
* code.
diff --git a/bindings/java/Makefile.am b/bindings/java/Makefile.am
index e045c6b9..d61eb035 100644
--- a/bindings/java/Makefile.am
+++ b/bindings/java/Makefile.am
@@ -5,6 +5,7 @@ INCLUDES = -I$(top_srcdir) \
AM_JAVACFLAGS=-C
CLASSPATH_ENV= CLASSPATH=.:lasso.jar:/usr/share/java/junit.jar
+JAVAROOT=.
java_extension_LTLIBRARIES = libjnilasso.la
java_extensiondir = ${libdir}/java
@@ -48,7 +49,6 @@ $(java_lasso_source_files) com_entrouvert_lasso_LassoJNI.c: ../lang_java_wrappe
$(PYTHON) $(top_srcdir)/bindings/bindings.py -l java --src-dir=$(top_srcdir)/lasso/
cp $(srcdir)/GObject.java com/entrouvert/lasso
-check: JAVAROOT=.
doc-publish: doc
tar czf doc.tgz -C doc .
diff --git a/bindings/java/tests/LoginTest.java b/bindings/java/tests/LoginTest.java
index d3d29d49..a961415a 100644
--- a/bindings/java/tests/LoginTest.java
+++ b/bindings/java/tests/LoginTest.java
@@ -155,7 +155,7 @@ public class LoginTest extends TestCase {
assertNotNull(soapRequestMsg);
// Identity provider SOAP endpoint.
- requestType = LassoJNI.getRequestTypeFromSoapMsg(soapRequestMsg);
+ requestType = LassoJNI.lasso_get_request_type_from_soap_msg(soapRequestMsg);
assertEquals(LassoConstants.LASSO_REQUEST_TYPE_LOGIN, requestType);
idpDump = generateIdentityProviderDump();
assertNotNull(idpDump);
@@ -202,7 +202,7 @@ public class LoginTest extends TestCase {
soapRequestMsg = spLogout.getMsgBody();
// Identity provider SOAP endpoint.
- requestType = LassoJNI.getRequestTypeFromSoapMsg(soapRequestMsg);
+ requestType = LassoJNI.lasso_get_request_type_from_soap_msg(soapRequestMsg);
assertEquals(LassoConstants.LASSO_REQUEST_TYPE_LOGOUT, requestType);
idpDump = generateIdentityProviderDump();
assertNotNull(idpDump);