Skip to content

Commit

Permalink
use jul base64
Browse files Browse the repository at this point in the history
  • Loading branch information
nlu90 committed Aug 10, 2021
1 parent adc1c19 commit 2f4919d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;

import com.google.api.client.util.Base64;
import io.debezium.config.Configuration;
import io.debezium.relational.Tables;
import io.debezium.relational.ddl.DdlParserSql2003;
Expand All @@ -34,6 +33,7 @@

import java.io.ByteArrayOutputStream;
import java.io.ObjectOutputStream;
import java.util.Base64;
import java.util.Map;

import org.apache.pulsar.client.api.ClientBuilder;
Expand Down Expand Up @@ -87,7 +87,7 @@ private void testHistoryTopicContent(boolean skipUnparseableDDL, boolean testWit
oos.writeObject(builder);
oos.flush();
byte[] data = bao.toByteArray();
configBuidler.with(PulsarDatabaseHistory.CLIENT_BUILDER, Base64.encodeBase64String(data));
configBuidler.with(PulsarDatabaseHistory.CLIENT_BUILDER, Base64.getEncoder().encodeToString(data));
}
} else {
configBuidler.with(PulsarDatabaseHistory.SERVICE_URL, brokerUrl.toString());
Expand Down

0 comments on commit 2f4919d

Please sign in to comment.