Code Monkey home page Code Monkey logo

kompics-testing's Introduction

Kompics

Build Status Download javadoc

A message-passing component model for building distributed systems.

See the documentation for more information.

kompics-testing's People

Contributors

bathtor avatar iffyio avatar o-alex avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

decentrify

kompics-testing's Issues

Repeated trigger with context

It would be nice to be able to trigger repeated messages with a generator (Producer).
instead of
tc.trigger(new Msg(1), port);
tc.trigger(new Msg(2), port);
tc.trigger(new Msg(3), port);
I might want to write:
tc.repeat(5).body();
tc.trigger(newMsg(), port);
tc.end();

Also I might want to do a one request multi response type of behaviour. So I would like the future from the answerRequest to be able to be used as a generator(Producer) for my messages.

Currently the future trick for 1 request multi response doesn't work because in


once the future gets invoked you set the event and thus future invocations will see the event set already.

Abstract Proxy to allow plugging of a Scala Kompics version

We need to do the same in the testing framework that I did in Kompics Java, back, when I first wrote Kompics Scala, that is separate out what the (test-)runtime requires to be able to interact with the CUT into an interface or abstract class (or multiple) and then select whether to use a Java or Scala implementation of this abstraction based on the the actual runtime type of the CUT.

Otherwise we won't ever be able to have a working Scala DSL, or even just use the testing framework with Kompics Scala components.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.