input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testRemoveAddressPort ( ) { java . util . List < java . lang . String > expected = new java . util . ArrayList ( ) ; expected . add ( "stratio1" ) ; expected . add ( "stratio2" ) ; expected . add ( "stratio3" ) ; expected . add ( "stratio4" ) ; java . util . List < java . lang . String > test = new java . util . ArrayL...
org . junit . Assert . assertEquals ( stringList , expected )
testBeginTransactionEmitsOneItem ( ) { com . github . davidmoten . rx . jdbc . Database db = db ( ) ; java . lang . Boolean value = db . beginTransaction ( ) . toBlocking ( ) . single ( ) ; "<AssertPlaceHolder>" ; } beginTransaction ( ) { return beginTransaction ( rx . Observable . empty ( ) ) ; }
org . junit . Assert . assertTrue ( value )
compareTo_shouldSort ( ) { java . text . SimpleDateFormat ymd = new java . text . SimpleDateFormat ( "yyyy-MM-dd" ) ; org . openmrs . Cohort c1 = new org . openmrs . Cohort ( ) ; c1 . setCohortId ( 1 ) ; org . openmrs . Cohort c2 = new org . openmrs . Cohort ( ) ; c2 . setCohortId ( 2 ) ; org . openmrs . CohortMembersh...
org . junit . Assert . assertThat ( list , contains ( startedRecently , startedLongAgo , noStartOrEnd , endedRecently , endedLongAgo , voided ) )
testEliminateNotNot ( ) { com . redhat . lightblue . query . QueryExpression v1 = _not ( new com . redhat . lightblue . query . RegexMatchExpression ( new com . redhat . lightblue . util . Path ( "f1" ) , "X" , false , false , false , false ) ) ; com . redhat . lightblue . query . QueryExpression q = _not ( v1 ) ; com ...
org . junit . Assert . assertTrue ( ( newq instanceof com . redhat . lightblue . query . RegexMatchExpression ) )
testCollectHeads_single ( ) { com . asakusafw . utils . graph . Graph < java . lang . Integer > graph = com . asakusafw . utils . graph . Graphs . newInstance ( ) ; com . asakusafw . utils . graph . GraphsTest . addPath ( graph , 1 ) ; "<AssertPlaceHolder>" ; } collectHeads ( com . asakusafw . utils . graph . Graph ) {...
org . junit . Assert . assertThat ( com . asakusafw . utils . graph . Graphs . collectHeads ( graph ) , is ( set ( 1 ) ) )
treeData_remove_root_item ( ) { data . removeItem ( null ) ; "<AssertPlaceHolder>" ; } getChildren ( T ) { if ( ! ( contains ( item ) ) ) { throw new java . lang . IllegalArgumentException ( ( ( "Item<sp>'" + item ) + "'<sp>not<sp>in<sp>the<sp>hierarchy" ) ) ; } return java . util . Collections . unmodifiableList ( ite...
org . junit . Assert . assertTrue ( data . getChildren ( null ) . isEmpty ( ) )
testcase_01 ( ) { testSetup . createAsyncScenario01 ( ) ; performBillingRun ( 0 , "2013-07-01<sp>12:00:00" ) ; org . oscm . internal . vo . VOSubscriptionDetails subscr = getSubscriptionDetails ( "test_01" , 0 ) ; org . oscm . billingservice . evaluation . BillingResultEvaluator eva = getEvaluator ( subscr . getKey ( )...
org . junit . Assert . assertNull ( eva )
testEndingZero ( ) { io . reactiverse . pgclient . impl . StringLongSequence seq = new io . reactiverse . pgclient . impl . StringLongSequence ( ) ; for ( int i = 0 ; i < 10000 ; i ++ ) { "<AssertPlaceHolder>" ; } } next ( ) { if ( ( current ) == null ) { throw new java . util . NoSuchElementException ( ) ; } io . reac...
org . junit . Assert . assertEquals ( 0 , ( ( seq . next ( ) ) & 255 ) )
testTrashAndDeleteWithApprovedStatusIsNotFound ( ) { org . junit . Assume . assumeTrue ( ( ( this ) instanceof com . liferay . trash . test . util . WhenIsAssetableBaseModel ) ) ; com . liferay . trash . test . util . WhenIsAssetableBaseModel whenIsAssetableBaseModel = ( ( com . liferay . trash . test . util . WhenIsAs...
org . junit . Assert . assertNull ( whenIsAssetableBaseModel . fetchAssetEntry ( baseModel ) )
testReportArgumentsShort ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "-r" , "output/report.txt" } ; org . wikidata . wdtk . client . ClientConfiguration config = new org . wikidata . wdtk . client . ClientConfiguration ( args ) ; "<AssertPlaceHolder>" ; } getReportFileName ( ) { return this . i...
org . junit . Assert . assertEquals ( "output/report.txt" , config . getReportFileName ( ) )
testCall ( ) { System . out . println ( "call" ) ; gov . hhs . fha . nhinc . gateway . executorservice . NhinCallableRequestTest . TestOutboundOrchestratableMessage test = new gov . hhs . fha . nhinc . gateway . executorservice . NhinCallableRequestTest . TestOutboundOrchestratableMessage ( ) ; gov . hhs . fha . nhinc ...
org . junit . Assert . assertNotNull ( result )
testToString ( ) { de . metanome . algorithm_integration . ColumnCombination expectedDeterminant = new de . metanome . algorithm_integration . ColumnCombination ( new de . metanome . algorithm_integration . ColumnIdentifier ( "table1" , "column1" ) , new de . metanome . algorithm_integration . ColumnIdentifier ( "table...
org . junit . Assert . assertEquals ( expectedStringRepresentation , functionalDependency . toString ( ) )
add_many_to_collection_populates_an_existing_collection_with_size ( ) { java . util . ArrayList < java . lang . String > list = new java . util . ArrayList < java . lang . String > ( ) ; int size = 5 ; this . fixtureCollections . addManyTo ( list , java . lang . String . class , size ) ; "<AssertPlaceHolder>" ; } addMa...
org . junit . Assert . assertEquals ( size , list . size ( ) )
serialize ( ) { com . google . gson . Gson gson = com . github . seratch . jslack . common . json . GsonFactory . createSnakeCase ( ) ; com . github . seratch . jslack . api . model . event . ImHistoryChangedEvent event = new com . github . seratch . jslack . api . model . event . ImHistoryChangedEvent ( ) ; java . lan...
org . junit . Assert . assertThat ( generatedJson , org . hamcrest . CoreMatchers . is ( expectedJson ) )
testClose ( ) { try ( java . sql . Connection connection = buildConnection ( ) ) { "<AssertPlaceHolder>" ; } catch ( java . sql . SQLException e ) { throw new java . lang . RuntimeException ( e ) ; } } buildConnection ( ) { return me . geso . tinyorm . TestBase . buildConnection ( false ) ; }
org . junit . Assert . assertNotNull ( connection )
testEvalConstraintWithMvelOperator ( ) { java . lang . String drl = "rule<sp>\"yeah\"<sp>" + ( ( ( "\tdialect<sp>\"mvel\"\n<sp>when<sp>" + "Foo(<sp>eval(<sp>field<sp>soundslike<sp>\"water\"<sp>)<sp>)" ) + "<sp>then<sp>" ) + "end" ) ; org . drools . compiler . compiler . DrlParser drlParser = new org . drools . compiler...
org . junit . Assert . assertEquals ( 1 , pd . getConstraint ( ) . getDescrs ( ) . size ( ) )
copiesAllPropertiesFromOtherEverrestConfiguration ( ) { everrestConfiguration . setProperty ( "foo" , "bar" ) ; everrestConfiguration . setProperty ( "foo2" , "bar2" ) ; org . everrest . core . impl . EverrestConfiguration newEverrestConfiguration = new org . everrest . core . impl . EverrestConfiguration ( everrestCon...
org . junit . Assert . assertEquals ( everrestConfiguration . getAllProperties ( ) , newEverrestConfiguration . getAllProperties ( ) )
testIsAllowedString_allAllowedCodePoints ( ) { java . lang . String testStr = ( ( org . terasoluna . gfw . common . codepoints . CodePointsTest . SURROGATE_PAIR_CHAR_2000B ) + "" ) + ( org . terasoluna . gfw . common . codepoints . CodePointsTest . SURROGATE_PAIR_CHAR_2000B ) ; org . terasoluna . gfw . common . codepoi...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
testSupplierSets ( ) { int code = 0 ; try { code = _setupTestSupplier ( true ) ; _checkSupplierIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkSupplierIntoDb ( int ) { org . isf . supplier . model . Supplier foundSupplier ; foundSupplier = (...
org . junit . Assert . assertEquals ( true , false )
testSendBulkRequest_Iterable_StringFF ( ) { java . util . List < org . piwik . java . tracking . PiwikRequest > requests = new java . util . ArrayList ( ) ; org . apache . http . client . HttpClient client = mock ( org . apache . http . client . HttpClient . class ) ; org . piwik . java . tracking . PiwikRequest reques...
org . junit . Assert . assertEquals ( response , piwikTracker . sendBulkRequest ( requests , null ) )
testParseSimpleWithDecimals ( ) { java . lang . String source = ( ( ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "23;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "43;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "63}" ; org . apache . commons . math . geometry . Vector3D expected = new org . apache . commons . math . geomet...
org . junit . Assert . assertEquals ( expected , actual )
testFindNoWebDAV ( ) { final ch . cyberduck . core . Host host = new ch . cyberduck . core . Host ( new ch . cyberduck . core . dav . DAVSSLProtocol ( ) , "update.cyberduck.io" ) ; final ch . cyberduck . core . dav . DAVSession session = new ch . cyberduck . core . dav . DAVSession ( host ) ; session . open ( Proxy . D...
org . junit . Assert . assertNotNull ( attributes )
testWrite ( ) { org . apache . parquet . bytes . CapacityByteArrayOutputStream capacityByteArrayOutputStream = newCapacityBAOS ( 10 ) ; final int expectedSize = 54 ; for ( int i = 0 ; i < expectedSize ; i ++ ) { capacityByteArrayOutputStream . write ( i ) ; "<AssertPlaceHolder>" ; } validate ( capacityByteArrayOutputSt...
org . junit . Assert . assertEquals ( ( i + 1 ) , capacityByteArrayOutputStream . size ( ) )
testAutoCommitManualAssignmentCoordinatorUnknown ( ) { org . apache . kafka . clients . consumer . internals . ConsumerCoordinator coordinator = buildCoordinator ( new org . apache . kafka . common . metrics . Metrics ( ) , assignors , true , true ) ; subscriptions . assignFromUser ( singleton ( t1p ) ) ; subscriptions...
org . junit . Assert . assertFalse ( client . hasPendingResponses ( ) )
shouldHashAndEqualCorrectly ( ) { final org . apache . tinkerpop . gremlin . structure . Vertex v = graph . addVertex ( ) ; final java . util . Set < org . apache . tinkerpop . gremlin . structure . Vertex > set = new java . util . HashSet ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { set . add ( org . apache . tinkerpop ...
org . junit . Assert . assertEquals ( 1 , set . size ( ) )
assemblyBillTextFormatTest ( ) { java . lang . String inputText = "<sp>STATE<sp>OF<sp>NEW<sp>YORK\n" 5 + ( ( ( ( ( ( ( ( ( ( ( ( ( "<sp>STATE<sp>OF<sp>NEW<sp>YORK\n" + "<sp>________________________________________________________________________\n" ) + "<sp>STATE<sp>OF<sp>NEW<sp>YORK\n" 5 ) + "<sp>1051--A\n" ) + "<sp>C...
org . junit . Assert . assertEquals ( expectedResult , gov . nysenate . openleg . util . BillTextUtils . formatHtmlExtractedBillText ( inputText ) )
ascendingCollectionSizeCompare ( ) { org . eclipse . collections . api . list . MutableList < java . util . List < java . lang . Integer > > list = org . eclipse . collections . impl . list . mutable . FastList . newListWith ( org . eclipse . collections . impl . list . Interval . oneTo ( 1 ) , org . eclipse . collecti...
org . junit . Assert . assertEquals ( org . eclipse . collections . impl . list . mutable . FastList . < org . eclipse . collections . api . list . MutableList < java . lang . Integer > > newListWith ( org . eclipse . collections . impl . list . mutable . FastList . newListWith ( 1 ) , org . eclipse . collections . imp...
testButchering ( ) { it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . move . Move m = new it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . move . Butchering ( null , null ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( m )
testUnmarshallingFailureResponseToJson ( ) { java . io . InputStream input = getClass ( ) . getResourceAsStream ( "/unit/test-response-failure.json" ) ; java . lang . String expectedJson = org . apache . commons . io . IOUtils . toString ( input ) ; org . vertx . java . http . eventbusbridge . model . EventBusBridgeRes...
org . junit . Assert . assertEquals ( expectedJson , actualJson )
shouldNotInjectFlushAfterWriteConfigBeforeWrite ( ) { org . kaazing . k3po . lang . internal . ast . AstScriptNode expectedScriptNode = new org . kaazing . k3po . lang . internal . ast . builder . AstScriptNodeBuilder ( ) . addConnectStream ( ) . addConnectedEvent ( ) . done ( ) . addWriteConfigCommand ( ) . done ( ) ....
org . junit . Assert . assertEquals ( expectedScriptNode , actualScriptNode )
testBuildWithParametersWithDisabledDefaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String name = "name" ; org . lnu . is . domain . wave . type . WaveType context = new org . lnu . is . domain . wave . type . WaveType ( ) ; context . setName ( name ) ; java . lang . St...
org . junit . Assert . assertEquals ( expected , actualQuery )
testClone ( ) { org . eclipse . collections . api . map . MutableMap < java . lang . Integer , java . lang . String > map = this . newMapWithKeysValues ( 1 , "One" , 2 , "Two" ) ; org . eclipse . collections . api . map . MutableMap < java . lang . Integer , java . lang . String > clone = map . clone ( ) ; "<AssertPlac...
org . junit . Assert . assertSame ( map , clone )
testFindByMeetingId ( ) { com . wisobi . leanbean . Meeting meeting = com . wisobi . leanbean . LeanBeanDaoTest . dao . findByMeetingId ( 1 ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( meeting . getId ( ) , 1 )
concurrentIndexReadWriteTest ( ) { clopen ( option ( GraphDatabaseConfiguration . ADJUST_LIMIT ) , false ) ; com . thinkaurelius . titan . graphdb . PropertyKey k = mgmt . makePropertyKey ( "k" ) . dataType ( com . thinkaurelius . titan . graphdb . Integer . class ) . cardinality ( Cardinality . SINGLE ) . make ( ) ; c...
org . junit . Assert . assertEquals ( 0 , duplicates . get ( ) )
jaxbNVUnorderedRepeatedAddresses ( ) { org . ebayopensource . turmeric . runtime . tests . service1 . sample . types1 . MyMessage msg = org . ebayopensource . turmeric . runtime . tests . common . util . TestUtils . createTestMessage ( 2 ) ; org . ebayopensource . turmeric . runtime . common . binding . DataBindingDesc...
org . junit . Assert . assertEquals ( msg , msg1 )
testCreateTableFromSnapshotAsync ( ) { com . google . bigtable . admin . v2 . CreateTableFromSnapshotRequest request = com . google . bigtable . admin . v2 . CreateTableFromSnapshotRequest . newBuilder ( ) . setTableId ( com . google . cloud . bigtable . grpc . TestBigtableTableAdminClientWrapper . TABLE_ID ) . setSour...
org . junit . Assert . assertEquals ( response , actualResponse . get ( ) )
testConnectToServerUsingUntrustedKeyFails ( ) { try ( org . apache . qpid . jms . transports . netty . NettyEchoServer server = createEchoServer ( createServerOptions ( ) ) ) { server . start ( ) ; int port = server . getServerPort ( ) ; java . net . URI serverLocation = new java . net . URI ( ( "tcp://localhost:" + po...
org . junit . Assert . assertFalse ( transport . isConnected ( ) )
testEqualsWithMismatchedText ( ) { org . antlr . runtime . tree . TreeWizard wiz = new org . antlr . runtime . tree . TreeWizard ( org . antlr . test . TestTreeWizard . adaptor , org . antlr . test . TestTreeWizard . tokens ) ; org . antlr . runtime . tree . CommonTree t1 = ( ( org . antlr . runtime . tree . CommonTree...
org . junit . Assert . assertTrue ( ( ! same ) )
SAR_addMainRuleTest ( ) { husaccttest . define . DefineServicesTest_SRMA . defineService = husacct . ServiceProvider . getInstance ( ) . getDefineService ( ) ; husaccttest . define . DefineServicesTest_SRMA . defineSarService = husaccttest . define . DefineServicesTest_SRMA . defineService . getSarService ( ) ; husacct...
org . junit . Assert . assertTrue ( isRuleExisting ( "Presentation" , "Domain" , "IsNotAllowedToUse" ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . Release . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( c...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
treeScoringTest_Iris_2 ( ) { org . apache . pig . impl . logicalLayer . schema . Schema inputSchema = buildIrisInputSchema ( ) ; org . apache . pig . data . Tuple inputTuple = tf . newTuple ( ) ; org . apache . pig . data . Tuple expected = tf . newTuple ( ) ; { inputTuple = this . buildIrisInputEvent ( 5.9 , 3.2 , 4.8...
org . junit . Assert . assertEquals ( expected , observed )
testOpen ( ) { java . util . Optional < java . lang . Boolean > actual = org . openhab . io . transport . modbus . ModbusBitUtilities . translateCommand2Boolean ( OpenClosedType . OPEN ) ; "<AssertPlaceHolder>" ; } is ( org . eclipse . smarthome . core . thing . ThingTypeUID ) { return thingTypeUID . equals ( otherThin...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( java . util . Optional . of ( true ) ) ) )
testHasChildren_2 ( ) { org . eclipse . tracecompass . internal . lttng2 . control . ui . views . model . impl . TraceControlComponent fixture = new org . eclipse . tracecompass . internal . lttng2 . control . ui . views . model . impl . TraceControlComponent ( "" , new org . eclipse . tracecompass . internal . lttng2 ...
org . junit . Assert . assertFalse ( result )
testProject ( ) { prepareForQuery ( ) ; java . util . List < java . lang . Object > count = baseService . project ( in . cubestack . apps . android . storm . entitites . TestEntity . class , baseService . restrictionsFor ( in . cubestack . apps . android . storm . entitites . TestEntity . class ) . forAll ( ) , baseSer...
org . junit . Assert . assertNotNull ( count )
testLoadPluginConf ( ) { java . util . Map < java . lang . String , com . dp . nebula . wormhole . common . interfaces . IParam > pluginMap = com . dp . nebula . wormhole . common . utils . ParseXMLUtil . loadPluginConf ( ) ; "<AssertPlaceHolder>" ; java . util . Iterator iter = pluginMap . entrySet ( ) . iterator ( ) ...
org . junit . Assert . assertNotNull ( pluginMap )
frozenDontCheckChildren ( ) { org . alfresco . service . cmr . repository . NodeRef nodeRef = generateNodeRef ( ) ; when ( mockedHoldService . isHold ( nodeRef ) ) . thenReturn ( false ) ; condition . setCheckChildren ( false ) ; when ( mockedFreezeService . isFrozen ( nodeRef ) ) . thenReturn ( true ) ; "<AssertPlaceH...
org . junit . Assert . assertTrue ( condition . evaluate ( nodeRef ) )
testDAGraphGetNext ( ) { java . util . List < java . lang . String > expectedOrder = new java . util . ArrayList ( ) ; expectedOrder . add ( "A" ) ; expectedOrder . add ( "B" 3 ) ; expectedOrder . add ( "B" ) ; expectedOrder . add ( "B" 8 ) ; expectedOrder . add ( "B" 2 ) ; expectedOrder . add ( "D" ) ; expectedOrder ....
org . junit . Assert . assertEquals ( nextNode . key ( ) , expectedOrder . get ( i ) )
testStartOnce ( ) { managed . start ( ) ; managed . start ( ) ; "<AssertPlaceHolder>" ; } start ( ) { final eu . toolchain . concurrent . Managed < T > delegate = current . get ( ) ; if ( delegate == null ) { return async . cancelled ( ) ; } return delegate . start ( ) ; }
org . junit . Assert . assertEquals ( 1 , start . get ( ) )
testValueClearBeforeRead ( ) { org . apache . beam . runners . core . StateTag < org . apache . beam . sdk . state . ValueState < java . lang . String > > addr = org . apache . beam . runners . core . StateTags . value ( "value" , org . apache . beam . sdk . coders . StringUtf8Coder . of ( ) ) ; org . apache . beam . s...
org . junit . Assert . assertEquals ( null , value . read ( ) )
testPersoonMigratieHistorie ( ) { final int datumEindeGeldigheid = 20170201 ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . Persoon persoon = maakStandaardPersoon ( ) ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonMigratieHistorie migratieHistorie = new nl . bzk . algemeenbrp . dal...
org . junit . Assert . assertNotNull ( feitDatumDieKomtNaOfGelijkMetDitActieElement )
testRenderDispose_WithDisposedGrid ( ) { grid . dispose ( ) ; lca . renderDispose ( item ) ; org . eclipse . rap . rwt . testfixture . internal . TestMessage message = org . eclipse . rap . rwt . testfixture . internal . Fixture . getProtocolMessage ( ) ; "<AssertPlaceHolder>" ; } getOperationCount ( ) { return getOper...
org . junit . Assert . assertEquals ( 0 , message . getOperationCount ( ) )
vraagBepaaldOpgeschortPersoonOpMetTechischeSleutelFoutiefOpgeschortUitsluiten ( ) { final int aantalPersonen = persoonRepository . findByTechnischeSleutel ( 2L , SoortPersoon . INGESCHREVENE , true ) . size ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return stack . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , aantalPersonen )
testQueryFromAllShardsWithCallback ( ) { try { com . ctrip . platform . dal . dao . shard . DalHints hints = new com . ctrip . platform . dal . dao . shard . DalHints ( ) ; java . util . List < java . lang . Short > result = queryFromInAllShard ( hints . callbackWith ( new com . ctrip . platform . dal . dao . shard . D...
org . junit . Assert . assertNull ( result )
testFunctionDependingOnInputWithFunctionHierarchy ( ) { eu . stratosphere . api . java . type . extractor . TypeExtractorTest . IdentityMapper4 < java . lang . String > function = new eu . stratosphere . api . java . type . extractor . TypeExtractorTest . IdentityMapper4 < java . lang . String > ( ) ; eu . stratosphere...
org . junit . Assert . assertEquals ( BasicTypeInfo . STRING_TYPE_INFO , ti )
testDivByZero ( ) { final net . imglib2 . type . numeric . integer . ShortType n = new net . imglib2 . type . numeric . integer . ShortType ( ( ( short ) ( 17 ) ) ) ; n . div ( new net . imglib2 . type . numeric . integer . ShortType ( ( ( short ) ( 0 ) ) ) ) ; "<AssertPlaceHolder>" ; } get ( ) { t . set ( this . sourc...
org . junit . Assert . assertEquals ( n . get ( ) , ( ( short ) ( 8 ) ) )
bootstrapWeldContainer ( ) { org . jboss . weld . environment . se . Weld weld = new org . jboss . weld . environment . se . Weld ( ) ; try ( org . jboss . weld . environment . se . WeldContainer container = weld . initialize ( ) ) { com . hantsylabs . example . ee8 . cdi . Greeter greeter = container . select ( com . ...
org . junit . Assert . assertTrue ( ( greeter != null ) )
testSettingDifferentBaseNameWillResultInChangeForWhatBuilderLooksFor ( ) { org . apache . commons . vfs . impl . DefaultFileSystemManager manager = new org . apache . commons . vfs . impl . DefaultFileSystemManager ( ) ; org . apache . commons . vfs . FileObject applicationFolder = getApplicationFolder ( manager , ( ( ...
org . junit . Assert . assertNotNull ( ex . getMessage ( ) )
testShuffleProofGenerator2 ( ) { final ch . bfh . unicrypt . math . algebra . multiplicative . classes . GStarMod G_q = ch . bfh . unicrypt . math . algebra . multiplicative . classes . GStarModSafePrime . getInstance ( new java . math . BigInteger ( ch . bfh . unicrypt . crypto . proofsystem . ShuffleProofSystemTest ....
org . junit . Assert . assertTrue ( v )
saySomethingWithAGivenVoiceIdWhenTheDefaultTTSIsSetAndItIsARegisteredService ( ) { registerService ( ttsService ) ; voiceManager . say ( "hello" , voice . getUID ( ) , sink . getId ( ) ) ; "<AssertPlaceHolder>" ; } getIsStreamProcessed ( ) { return isStreamProcessed ; }
org . junit . Assert . assertTrue ( sink . getIsStreamProcessed ( ) )
testBinarySearchNotFound ( ) { System . out . println ( "binarySearch" ) ; int [ ] index = new int [ ] { 10 , 13 , 15 , 17 , 19 } ; int key = 14 ; int begin = 0 ; int end = 5 ; int expResult = - 1 ; int result = org . genemania . engine . matricks . Utils . binarySearch ( index , key , begin , end ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( expResult , result )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . segments . model . SegmentsEntryRel missingSegmentsEntryRel = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . liferay...
org . junit . Assert . assertNull ( missingSegmentsEntryRel )
normalizeSpaces_shouldCompressAll ( ) { final java . lang . String input = "a\r\n\t<sp>b\n\t\t<sp>\tc" ; final java . lang . String value = org . erlide . util . StringUtils . normalizeSpaces ( input ) ; final java . lang . String expected = "a<sp>b<sp>c" ; "<AssertPlaceHolder>" ; } normalizeSpaces ( java . lang . Stri...
org . junit . Assert . assertEquals ( value , expected )
handlesParameterMoveCorrectlyForMethodParameters ( ) { java . lang . String lastParameterName = "lastOne" ; methodParams . addProperty ( lastParameterName ) ; tableHolderModel . moveProperty ( lastParameterName , 1 , 0 ) ; "<AssertPlaceHolder>" ; } getPropertyAtRow ( int ) { return params . getProperty ( paramNameIndex...
org . junit . Assert . assertThat ( tableHolderModel . getPropertyAtRow ( 0 ) . getName ( ) , org . hamcrest . core . Is . is ( lastParameterName ) )
testIllegalSpdyDataFrameStreamId ( ) { int streamId = 0 ; byte flags = 0 ; int length = 0 ; io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . buffer ( ( ( io . netty . handler . codec . spdy . SpdyCodecUtil . SPDY_HEADER_SIZE ) + length ) ) ; io . netty . handler . codec . spdy . SpdyFrameDecoderTest...
org . junit . Assert . assertFalse ( buf . isReadable ( ) )
testNextWithNoToken ( ) { java . util . List < org . apache . lucene . analysis . Token > tokens = new java . util . ArrayList < org . apache . lucene . analysis . Token > ( ) ; tokenStream = new org . eurekastreams . commons . search . analysis . TokenStreamTestHelper ( tokens ) ; java . util . List < java . lang . St...
org . junit . Assert . assertNull ( null , sut . next ( reusableToken ) )
testSection4272LinkRelIsegmentNzNc ( ) { org . apache . abdera . i18n . iri . IRI uri = org . apache . abdera . test . parser . stax . FeedValidatorTest . baseURI . resolve ( "4.2.7.2/link-rel-isegment-nz-nc.xml" ) ; org . apache . abdera . model . Document < org . apache . abdera . model . Feed > doc = parse ( uri ) ;...
org . junit . Assert . assertNotNull ( entry . getAlternateLink ( ) )
testGetDenied ( ) { org . alfresco . solr . client . AclReaders aclReaders = new org . alfresco . solr . client . AclReaders ( 0 , asList ( "r1" , "r2" , "r3" ) , null , 0 , null ) ; "<AssertPlaceHolder>" ; } getReaders ( ) { return readers ; }
org . junit . Assert . assertEquals ( asList ( "r1" , "r2" , "r3" ) , aclReaders . getReaders ( ) )
testSerialization ( ) { org . jfree . chart . axis . CategoryAxis a1 = new org . jfree . chart . axis . CategoryAxis ( "Test<sp>Axis" ) ; a1 . setTickLabelPaint ( "C1" , new java . awt . GradientPaint ( 1.0F , 2.0F , java . awt . Color . red , 3.0F , 4.0F , java . awt . Color . white ) ) ; org . jfree . chart . axis . ...
org . junit . Assert . assertEquals ( a1 , a2 )
testListenerWithMockRetrofit ( ) { final retrofit2 . Retrofit retrofit = new retrofit2 . Retrofit . Builder ( ) . baseUrl ( "http://[100:0:0:0:0:0:0:0]/" ) . build ( ) ; final retrofit2 . mock . NetworkBehavior networkBehavior = retrofit2 . mock . NetworkBehavior . create ( ) ; networkBehavior . setDelay ( 0 , TimeUnit...
org . junit . Assert . assertEquals ( 1 , goodListener . getCallCount ( ) )
testTransmission ( ) { channel . updateMode ( ConnectionMode . SEND_RECV ) ; audioMixer . start ( ) ; oobMixer . start ( ) ; detector . activate ( ) ; new java . lang . Thread ( sender ) . start ( ) ; java . lang . Thread . sleep ( 5000 ) ; channel . updateMode ( ConnectionMode . INACTIVE ) ; audioMixer . stop ( ) ; oo...
org . junit . Assert . assertEquals ( 4 , count )
testHorizontalOrCardinalityBigInts ( ) { int [ ] vals = new int [ ] { ( 1 << 31 ) + 65535 , ( 1 << 31 ) + 131071 , ( 1 << 31 ) + 196607 , ( 1 << 31 ) + 262143 , ( 1 << 31 ) + 327679 , ( 1 << 31 ) + 393215 , ( 1 << 31 ) + 458751 , ( 1 << 31 ) + 524287 } ; final org . roaringbitmap . RoaringBitmap [ ] b = new org . roari...
org . junit . Assert . assertEquals ( 8 , a . getCardinality ( ) )
shouldOnlyBindRequestAttributeWhenNoBindingAlreadyMade ( ) { com . threewks . thundr . introspection . ParameterDescription varParam = new com . threewks . thundr . introspection . ParameterDescription ( "var" , java . lang . String . class ) ; bindings . put ( varParam , "original" ) ; req . putData ( "var" , "overrid...
org . junit . Assert . assertThat ( bindings . get ( varParam ) , org . hamcrest . Matchers . is ( ( ( java . lang . Object ) ( "original" ) ) ) )
test1580226 ( ) { sql = "INSERT<sp>INTO<sp>Fact_Acct_Balance<sp>ab<sp>" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "(AD_Client_ID,<sp>AD_Org_ID,<sp>C_AcctSchema_ID,<sp>DateAcct," + "<sp>AmtAcctDr,<sp>AmtAcctCr,<sp>Qty)<sp>" 1 ) + "<sp>C_Project_ID,<sp>AD_OrgTrx_ID,<sp>C_SalesRegion_ID,C_Activity_ID," ) + "<sp>C_Campaign_ID,<sp>C_...
org . junit . Assert . assertEquals ( sqe , convertResult . get ( 0 ) )
testBacklog ( ) { options . setSocketOpt ( ZMQ . ZMQ_BACKLOG , 2000 ) ; "<AssertPlaceHolder>" ; } getSocketOpt ( int ) { switch ( option ) { case ZMQ . ZMQ_SNDHWM : return sendHwm ; case ZMQ . ZMQ_RCVHWM : return recvHwm ; case ZMQ . ZMQ_AFFINITY : return affinity ; case ZMQ . ZMQ_IDENTITY : return identity ; case ZMQ ...
org . junit . Assert . assertThat ( options . getSocketOpt ( ZMQ . ZMQ_BACKLOG ) , org . hamcrest . CoreMatchers . is ( ( ( java . lang . Object ) ( 2000 ) ) ) )
generatesInstanceInit ( ) { final com . helger . jcodemodel . JCodeModel cm = new com . helger . jcodemodel . JCodeModel ( ) ; final com . helger . jcodemodel . JDefinedClass c = cm . _package ( "myPackage" ) . _class ( 0 , "MyClass" ) ; c . headerComment ( ) . add ( "Line<sp>1\nLine<sp>2\nLine<sp>3" ) ; final com . he...
org . junit . Assert . assertNotNull ( initializerDeclaration )
testGetSchemaString ( ) { try { io . confluent . kafka . schemaregistry . client . rest . entities . SchemaString ss = new io . confluent . kafka . schemaregistry . client . rest . entities . SchemaString ( ) ; org . springframework . http . ResponseEntity entity = mock ( org . springframework . http . ResponseEntity ....
org . junit . Assert . assertTrue ( true )
testStringContentWithCharset ( ) { sonia . scm . net . ahc . StringContent sc = new sonia . scm . net . ahc . StringContent ( "" , com . google . common . base . Charsets . ISO_8859_1 ) ; "<AssertPlaceHolder>" ; } getData ( ) { return data ; }
org . junit . Assert . assertEquals ( "" , new java . lang . String ( sc . getData ( ) , com . google . common . base . Charsets . ISO_8859_1 ) )
testRemove ( ) { dtoService . remove ( 15300L ) ; org . yes . cart . domain . dto . ProductDTO dto = dtoService . getById ( 15300L ) ; "<AssertPlaceHolder>" ; } getById ( long ) { return voShopService . getById ( id ) ; }
org . junit . Assert . assertNull ( dto )
testJavaSerialization ( ) { org . bitcoinj . core . DumpedPrivateKey key = new org . bitcoinj . core . DumpedPrivateKey ( org . bitcoinj . core . DumpedPrivateKeyTest . MAINNET , new org . bitcoinj . core . ECKey ( ) . getPrivKeyBytes ( ) , true ) ; java . io . ByteArrayOutputStream os = new java . io . ByteArrayOutput...
org . junit . Assert . assertEquals ( key , keyCopy )
testProcess ( ) { System . out . println ( "process" ) ; java . util . Collection < java . util . Collection < java . lang . Long > > groups = new java . util . ArrayList < java . util . Collection < java . lang . Long > > ( ) ; java . util . Collection < java . lang . Long > attributeGroupIds = new java . util . Array...
org . junit . Assert . assertNotNull ( weights )
shouldNotBeActiveWhenMatchingParameterHasANonMatchingValue ( ) { java . util . Map < java . lang . String , java . lang . String [ ] > parameters = new java . util . HashMap ( ) ; parameters . put ( "toggleFeatureX" , ( ( java . lang . String [ ] ) ( java . util . Arrays . asList ( "false" ) . toArray ( ) ) ) ) ; param...
org . junit . Assert . assertFalse ( isActive )
shouldGetHeightToVectorWhenSameYBase ( ) { int yBase = 100 ; int expectedHeight = 23 ; com . orange . dgil . trail . core . common . TrailPoint point1 = new com . orange . dgil . trail . core . common . TrailPoint ( 10 , yBase ) ; com . orange . dgil . trail . core . common . TrailPoint point2 = new com . orange . dgil...
org . junit . Assert . assertEquals ( expectedHeight , height )
passCase8 ( ) { org . openstack . atlas . api . validation . verifiers . VerifierResult result = hostNameVerifier . verify ( "1.2.3.4" ) ; "<AssertPlaceHolder>" ; } passed ( ) { return passed ; }
org . junit . Assert . assertTrue ( result . passed ( ) )
testCDSDeletionSpanningIntoCDSFromTheLeftReverse ( ) { de . charite . compbio . jannovar . reference . GenomeVariant change = new de . charite . compbio . jannovar . reference . GenomeVariant ( new de . charite . compbio . jannovar . reference . GenomePosition ( de . charite . compbio . jannovar . reference . Transcrip...
org . junit . Assert . assertEquals ( expectedBuilder . toString ( ) , resultTranscript )
testUpdateSplit ( ) { org . cojen . tupl . View ix = openIndex ( "test" ) ; byte [ ] key = new byte [ 4 ] ; byte [ ] value = "small" . getBytes ( ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { org . cojen . tupl . Utils . encodeIntBE ( key , 0 , i ) ; ix . store ( Transaction . BOGUS , key , value ) ; } value = "value<sp>is...
org . junit . Assert . assertTrue ( verify ( ix ) )
testSetAuthenticatedUserLookup ( ) { System . out . println ( "setAuthenticatedUserLookup" ) ; edu . harvard . iq . dataverse . authorization . AuthenticatedUserLookup authenticatedUserLookup = edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getAuthenticatedUserLookup ( ) ; e...
org . junit . Assert . assertEquals ( authenticatedUserLookup , edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getAuthenticatedUserLookup ( ) )
toOutputStreamImageFormatMatchesOutputFormatForJpegWithBufferedImageInput ( ) { java . awt . image . BufferedImage img = new net . coobird . thumbnailator . builders . BufferedImageBuilder ( 200 , 200 ) . build ( ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; net . coobird . th...
org . junit . Assert . assertEquals ( "JPEG" , net . coobird . thumbnailator . TestUtils . getFormatName ( new java . io . ByteArrayInputStream ( baos . toByteArray ( ) ) ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( expandoColumns . isEmpty ( ) )
testRoot ( ) { com . couchbase . mock . subdoc . Path p = new com . couchbase . mock . subdoc . Path ( "" ) ; "<AssertPlaceHolder>" ; } size ( ) { return components . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , p . size ( ) )
parseAbsoluteLengthFrom10px ( ) { java . lang . String value = "10px" ; float actual = com . itextpdf . styledxmlparser . css . util . CssUtils . parseAbsoluteLength ( value , CommonCssConstants . PX ) ; float expected = 7.5F ; "<AssertPlaceHolder>" ; } parseAbsoluteLength ( java . lang . String , java . lang . String ...
org . junit . Assert . assertEquals ( expected , actual , 0 )
properties ( ) { java . lang . String version = java . lang . System . getProperty ( "java.version" ) ; org . junit . Assume . assumeNotNull ( version ) ; com . asakusafw . integration . AsakusaProject project = provider . newInstance ( "testing" ) ; "<AssertPlaceHolder>" ; } property ( com . asakusafw . directio . hiv...
org . junit . Assert . assertThat ( project . property ( "java.version" ) , is ( version ) )
testToCropWithSquare ( ) { edu . illinois . library . cantaloupe . operation . Crop expected = new edu . illinois . library . cantaloupe . operation . CropToSquare ( ) ; instance = new edu . illinois . library . cantaloupe . resource . iiif . v2 . Region ( ) ; instance . setType ( Region . Type . SQUARE ) ; edu . illin...
org . junit . Assert . assertEquals ( expected , actual )
metricNameCounter ( ) { org . apache . edgent . test . metrics . MetricsCommonTest . Context < java . lang . Object , java . lang . Object > ctx = new org . apache . edgent . test . metrics . MetricsCommonTest . Context < > ( ) ; ctx . addService ( com . codahale . metrics . MetricRegistry . class , new com . codahale ...
org . junit . Assert . assertNotNull ( op . getMetricName ( ) )
testGetTrashHandler ( ) { com . liferay . portal . kernel . trash . TrashHandler trashHandler = com . liferay . portal . kernel . trash . TrashHandlerRegistryUtil . getTrashHandler ( com . liferay . trash . service . test . trashhandlerresgistryutil . TestTrashHandler . class . getName ( ) ) ; java . lang . Class < ? >...
org . junit . Assert . assertEquals ( com . liferay . trash . service . test . trashhandlerresgistryutil . TestTrashHandler . class . getName ( ) , clazz . getName ( ) )
should_return_a_list_without_null_elements ( ) { java . util . List < java . lang . String > c = org . fest . util . Lists . newArrayList ( "Frodo" , null , "Sam" , null ) ; java . util . List < java . lang . String > nonNull = org . fest . util . Collections . nonNullElementsIn ( c ) ; "<AssertPlaceHolder>" ; } nonNul...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "Frodo" , "Sam" } , nonNull . toArray ( ) )
testDisableBackButtonNavigationReturnsDecorator ( ) { org . eclipse . swt . widgets . Shell shell = new org . eclipse . swt . widgets . Shell ( display ) ; org . eclipse . swt . widgets . Tree focusTree = new org . eclipse . swt . widgets . Tree ( shell , org . eclipse . swt . SWT . NONE ) ; com . eclipsesource . tabri...
org . junit . Assert . assertSame ( treeDecorator , actualDecorator )
testHasEntity ( ) { com . eclipsesource . jaxrs . consumer . internal . RequestError error = mock ( com . eclipsesource . jaxrs . consumer . internal . RequestError . class ) ; when ( error . getEntity ( ) ) . thenReturn ( "foo" ) ; com . eclipsesource . jaxrs . consumer . RequestException exception = new com . eclipse...
org . junit . Assert . assertEquals ( "foo" , entity )
testRoutePath ( ) { final org . opendaylight . yangtools . yang . data . api . YangInstanceIdentifier . NodeIdentifierWithPredicates prefixNii = createRouteNIWP ( org . opendaylight . protocol . bgp . l3vpn . mcast . L3vpnMcastIpv4RIBSupportTest . MCAST_L3VPN_ROUTES ) ; final org . opendaylight . yangtools . yang . dat...
org . junit . Assert . assertEquals ( expected , actual )
testNoAdjustments ( ) { com . j256 . simplemetrics . metric . ControlledMetricRatio metric = new com . j256 . simplemetrics . metric . ControlledMetricRatio ( "component" , "module" , "name" , "desc" , null ) ; "<AssertPlaceHolder>" ; } getValue ( ) { double value ; double adjustedDenominator = ( denominator ) * ( coun...
org . junit . Assert . assertEquals ( 0.0 , metric . getValue ( ) )
shouldGiveVoicemailRingtoneUri ( ) { android . telecom . PhoneAccountHandle phoneAccountHandle = new android . telecom . PhoneAccountHandle ( new android . content . ComponentName ( androidx . test . core . app . ApplicationProvider . getApplicationContext ( ) , java . lang . Object . class ) , "handle" ) ; android . n...
org . junit . Assert . assertEquals ( ringtoneUri , telephonyManager . getVoicemailRingtoneUri ( phoneAccountHandle ) )