source: tags/1.9.2/t/runtime-class.lisp

Last change on this file was 15606, checked in by Mark Evenson, 2 years ago

jnew-runtime-consumer: test via RabbitMQ consumer

Adapted from <https://github.com/armedbear/abcl/pull/517#issue-1456702800>.

File size: 847 bytes
Line 
1;;;; see <file:rabbitmq.asd> for loading RabbitMQ artifacts
2
3(prove:plan 1)
4
5(when (asdf:load-system :rabbitmq)
6  (prove:ok
7    (java:jnew-runtime-class
8     "LispConsumer"
9     :superclass "com.rabbitmq.client.DefaultConsumer"
10     :constructors '((("com.rabbitmq.client.Channel")
11                    (lambda (this channel)
12                      (declare (ignore this channel))
13                      1)))
14     :methods '(("handleDelivery" :void
15                 ("java.lang.String"
16                  "com.rabbitmq.client.Envelope"
17                  "com.rabbitmq.client.AMQP$BasicProperties"
18                  (:array :byte))
19                 (lambda (this consumer-tag envelope properties body)
20                   (handler consumer-tag envelope properties body))))))
21  (prove:diag "Create synthetic RabbitMQ consumer"))
22   
23
24(prove:finalize)
25
26
Note: See TracBrowser for help on using the repository browser.