Exemple #1
0
 public override void OnClosed(Connection connection)
 {
     if (connection is JettyHttpConnection)
     {
         _connectionTracker.remove(( JettyHttpConnection )connection);
     }
 }
Exemple #2
0
 public override void OnOpened(Connection connection)
 {
     if (connection is JettyHttpConnection)
     {
         _connectionTracker.add(( JettyHttpConnection )connection);
     }
 }
Exemple #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldIgnoreClosedConnectionOfUnknownType()
        internal virtual void ShouldIgnoreClosedConnectionOfUnknownType()
        {
            Connection connection = mock(typeof(Connection));

            _listener.onClosed(connection);

            verify(_connectionTracker, never()).add(any());
            verify(_connectionTracker, never()).remove(any());
        }