input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testFindByWorkflowType ( ) { java . lang . String workflowType1 = "alpha" ; java . lang . String workflowType2 = "bravo" ; org . oscarehr . common . model . WorkFlow workFlow1 = new org . oscarehr . common . model . WorkFlow ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelCla... | org . junit . Assert . assertTrue ( true ) |
shouldReturnToOriginalResponseWhenNoneLocationIsDefined ( ) { java . net . URI origin = new java . net . URI ( "http://default.com" ) ; when ( request . getURI ( ) ) . thenReturn ( origin ) ; "<AssertPlaceHolder>" ; } getLocation ( ) { try { java . lang . String location = getHeaders ( ) . getFirst ( "Location" ) ; if ... | org . junit . Assert . assertEquals ( origin , response . getLocation ( ) ) |
testPutTaxonomyCategoryBatch ( ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( true ) |
shouldSendListUserAction ( ) { com . devicehive . ListUserRequest listUserRequest = new com . devicehive . ListUserRequest ( ) ; listUserRequest . setLogin ( com . devicehive . UUID . randomUUID ( ) . toString ( ) ) ; com . devicehive . shim . api . Request request = com . devicehive . shim . api . Request . newBuilder... | org . junit . Assert . assertNotNull ( responseBody . getUsers ( ) . isEmpty ( ) ) |
testVisitToDateFunction ( ) { es . ieci . tecdoc . fwktd . sql . node . expression . StringValue value = new es . ieci . tecdoc . fwktd . sql . node . expression . StringValue ( "2008-01-01" ) ; es . ieci . tecdoc . fwktd . sql . node . expression . functions . cast . ToDateFunction function = new es . ieci . tecdoc . ... | org . junit . Assert . assertNotNull ( function . getSqlString ( ) ) |
member_equals_falseForSubclass ( ) { org . eclipse . rap . json . JsonObject . Member member = new org . eclipse . rap . json . JsonObject . Member ( "a" , JsonValue . TRUE ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object [ ] , java . lang . Object [ ] ) { if ( leftArray == rightArray ) { return true ; } if ... | org . junit . Assert . assertFalse ( member . equals ( new org . eclipse . rap . json . JsonObject . Member ( "a" , JsonValue . TRUE ) { } ) ) |
testGetAdvancedAfterUsingSetAntialias ( ) { gc . setAntialias ( SWT . ON ) ; "<AssertPlaceHolder>" ; } getAdvanced ( ) { checkDisposed ( ) ; return advanced ; } | org . junit . Assert . assertTrue ( gc . getAdvanced ( ) ) |
testGroupAlreadyRemoved ( ) { intentInstallCoordinator = new org . onosproject . net . intent . impl . installer . TestIntentInstallCoordinator ( ) ; installer . intentInstallCoordinator = intentInstallCoordinator ; errors = com . google . common . collect . ImmutableList . of ( org . onosproject . net . intent . impl ... | org . junit . Assert . assertEquals ( successContext , context ) |
testSerialization ( ) { org . jfree . chart . labels . IntervalCategoryItemLabelGenerator g1 = new org . jfree . chart . labels . IntervalCategoryItemLabelGenerator ( "{3}<sp>-<sp>{4}" , java . text . DateFormat . getInstance ( ) ) ; org . jfree . chart . labels . IntervalCategoryItemLabelGenerator g2 = ( ( org . jfree... | org . junit . Assert . assertEquals ( g1 , g2 ) |
testIntEncoding ( ) { for ( int i = 0 ; i < 256 ; i ++ ) { byte byte1 = org . hibernate . search . backend . jgroups . impl . MessageSerializationHelper . fromIntToByte ( i ) ; int int1 = org . hibernate . search . backend . jgroups . impl . MessageSerializationHelper . fromByteToInt ( byte1 ) ; "<AssertPlaceHolder>" ;... | org . junit . Assert . assertEquals ( i , int1 ) |
testGetImageWidth_withoutCellPadding ( ) { fakeCellPadding ( grid , 0 , 0 , 0 , 0 ) ; org . eclipse . nebula . widgets . grid . GridColumn [ ] columns = org . eclipse . nebula . widgets . grid . GridTestUtil . createGridColumns ( grid , 3 , SWT . NONE ) ; columns [ 1 ] . setWidth ( 100 ) ; org . eclipse . nebula . widg... | org . junit . Assert . assertEquals ( 100 , imageWidth ) |
testIsRepetido ( ) { java . lang . String [ ] values = new java . lang . String [ ] { "000000000000000" , "111111111111111" , "222222222222222" , "333333333333333" , "777777777777777" , "888888888888888" , "999999999999999" } ; for ( java . lang . String value : values ) { try { br . com . insula . opes . Cns . fromStr... | org . junit . Assert . assertNotNull ( ex ) |
testToDMNModelLiteralExpressionsNullValue ( ) { cellValueSupplier = ( ) -> java . util . Optional . of ( new org . kie . workbench . common . dmn . client . editors . expressions . types . relation . BaseGridCellValue < > ( null ) ) ; for ( int uiRowIndex = 0 ; uiRowIndex < ( uiModel . getRowCount ( ) ) ; uiRowIndex ++... | org . junit . Assert . assertNull ( le . getText ( ) . getValue ( ) ) |
testArgsHandlingWhenArgsContainsNullsOnlyAndNullsNotAllowed ( ) { setupConf ( com . google . common . collect . Lists . < java . lang . String > newArrayList ( null , null , null ) ) ; setEnableNullArgsAllowed ( false ) ; java . lang . String [ ] args = org . apache . oozie . action . hadoop . LauncherAMUtils . getMain... | org . junit . Assert . assertTrue ( java . util . Arrays . equals ( new java . lang . String [ ] { } , args ) ) |
testRequestWithEmptywithStartedTimeEndQuery ( ) { org . apache . hadoop . yarn . api . protocolrecords . GetApplicationsRequest request = org . apache . hadoop . yarn . server . resourcemanager . webapp . ApplicationsRequestBuilder . create ( ) . withStartedTimeEnd ( "" ) . build ( ) ; org . apache . hadoop . yarn . ap... | org . junit . Assert . assertEquals ( expectedRequest , request ) |
testFindBillingCodesByFontStyle ( ) { int displayStyle = 1111 ; java . lang . String serviceCode = "service001" ; org . oscarehr . common . model . BillingService billingService1 = createBillingService ( serviceCode , "20080101" ) ; billingService1 . setDisplayStyle ( displayStyle ) ; org . oscarehr . common . model . ... | org . junit . Assert . assertTrue ( true ) |
testWrite ( ) { try { java . io . File tempDir = gov . redhawk . sca . efs . ScaFileSystemPlugin . getDefault ( ) . getTempDirectory ( ) ; final java . io . File tmpFile = java . io . File . createTempFile ( "cfTest" , "testWrite" , tempDir ) ; tmpFile . deleteOnExit ( ) ; this . file . close ( ) ; this . file = new go... | org . junit . Assert . assertEquals ( testString , result ) |
marksPosition ( ) { short [ ] array = new short [ ] { 2 , 3 , 5 , 7 } ; java . nio . ShortBuffer buffer = java . nio . ShortBuffer . wrap ( array ) ; buffer . position ( 1 ) ; buffer . mark ( ) ; buffer . position ( 2 ) ; buffer . reset ( ) ; "<AssertPlaceHolder>" ; } position ( ) { return position ; } | org . junit . Assert . assertThat ( buffer . position ( ) , org . hamcrest . CoreMatchers . is ( 1 ) ) |
testPutRowFortran ( ) { org . nd4j . linalg . api . ndarray . INDArray row1 = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 4 , 4 ) . reshape ( 2 , 2 ) ; org . nd4j . linalg . api . ndarray . INDArray put = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 5 , 6 } ) ; row1 . putRow ( 1 , put ) ; ... | org . junit . Assert . assertEquals ( row1 , row1Fortran ) |
testEvaluateUnknownPath ( ) { org . hl7 . fhir . dstu3 . model . Patient p = new org . hl7 . fhir . dstu3 . model . Patient ( ) ; p . addName ( ) . setFamily ( "N1F1" ) . addGiven ( "N1G1" ) . addGiven ( "N1G2" ) ; p . addName ( ) . setFamily ( "N2F1" ) . addGiven ( "N2G1" ) . addGiven ( "N2G2" ) ; ca . uhn . fhir . fl... | org . junit . Assert . assertEquals ( 0 , names . size ( ) ) |
testGetModemConfig ( ) { org . eclipse . kura . net . admin . monitor . ModemMonitorServiceImpl svc = new org . eclipse . kura . net . admin . monitor . ModemMonitorServiceImpl ( ) ; java . util . List < org . eclipse . kura . net . NetConfig > netConfigs = new java . util . ArrayList ( ) ; org . eclipse . kura . net .... | org . junit . Assert . assertEquals ( config , result ) |
testExecutePowerDownTaskForDiscverableNodeWrongOSCreds ( ) { System . out . println ( "[TS]:<sp>testExecutePowerDownTaskForDiscverableNodeWrongOSCreds" ) ; com . vmware . vrack . hms . common . notification . TaskResponse TR = new com . vmware . vrack . hms . common . notification . TaskResponse ( new com . vmware . vr... | org . junit . Assert . assertFalse ( TR . getNode ( ) . isPowered ( ) ) |
testArrayPropertyInitNotDirty ( ) { org . nuxeo . ecm . core . api . model . impl . ArrayProperty property = getArrayProperty ( ) ; "<AssertPlaceHolder>" ; } isDirty ( ) { return ( ( listDiff ) != null ) && ( listDiff . isDirty ( ) ) ; } | org . junit . Assert . assertFalse ( property . isDirty ( ) ) |
dateInjectionOfNotExistingProperty ( ) { com . airhacks . afterburner . injection . DateProperties systemProperties = com . airhacks . afterburner . injection . Injector . injectAndInitialize ( new com . airhacks . afterburner . injection . DateProperties ( ) ) ; java . util . Date actual = systemProperties . getCustom... | org . junit . Assert . assertNotNull ( actual ) |
testAllSnapshots ( ) { final int measurementCount = 2 ; final int repetitions = 100 ; java . util . List < java . lang . Long > timeList = new java . util . ArrayList ( ) ; java . util . List < java . lang . String > plateList = new java . util . ArrayList ( ( ( repetitions * ( measurementCount + 5 ) ) * ( carSnapshots... | org . junit . Assert . assertEquals ( ( ( repetitions * ( measurementCount + 1 ) ) * ( carSnapshots . size ( ) ) ) , plateList . size ( ) ) |
testGetUsedQuotaByTileSetId ( ) { java . lang . String layerName = "topp:states2" ; java . util . List < org . geowebcache . diskquota . storage . TileSet > tileSets ; tileSets = new java . util . ArrayList < org . geowebcache . diskquota . storage . TileSet > ( tilePageCalculator . getTileSetsFor ( layerName ) ) ; jav... | org . junit . Assert . assertEquals ( expectedValaue , store . getUsedQuotaByTileSetId ( tsetId ) . getBytes ( ) ) |
testBuildWhereWithEntityField ( ) { java . lang . String expectedAwql = "SELECT<sp>Id,<sp>Name<sp>WHERE<sp>Name<sp>CONTAINS_IGNORE_CASE<sp>\"google\"<sp>LIMIT<sp>0,50" ; com . google . api . ads . adwords . axis . utils . v201809 . ServiceQuery serviceQuery = new com . google . api . ads . adwords . axis . utils . v201... | org . junit . Assert . assertEquals ( expectedAwql , serviceQuery . toString ( ) ) |
serializeVariantPropertiesPattern ( ) { final java . util . HashMap < java . lang . String , java . lang . String > pattern = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; pattern . put ( "foo" , null ) ; pattern . put ( "bar" , "x" ) ; final org . lilyproject . indexer . derefmap . De... | org . junit . Assert . assertEquals ( variantPropertiesPattern , deserialized ) |
testBasics ( ) { Pojo pojo = ImmutablePojo . builder ( ) . value ( 1 ) . build ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; } | org . junit . Assert . assertEquals ( 1 , pojo . getValue ( ) ) |
givenPatternNotMatches_whenGetMatchSpecificity_thenReturnsAbsent ( ) { com . brandwatch . robots . matching . Matcher < java . lang . String > matcher = com . brandwatch . robots . matching . MatcherUtilsImplTest . newPatternMatcher ( "yahoo" ) ; java . lang . String agent = "googlebot" ; com . google . common . base .... | org . junit . Assert . assertThat ( specificity , org . hamcrest . Matchers . equalTo ( com . google . common . base . Optional . < java . lang . Double > absent ( ) ) ) |
testClientIsSelected ( ) { registerEntryPoint ( null ) ; org . eclipse . rap . rwt . internal . service . UISessionBuilder builder = new org . eclipse . rap . rwt . internal . service . UISessionBuilder ( serviceContext ) ; org . eclipse . rap . rwt . service . UISession uiSession = builder . buildUISession ( ) ; org .... | org . junit . Assert . assertNotNull ( clientSelector . getSelectedClient ( uiSession ) ) |
testMessageUtil ( ) { final byte [ ] expected = new byte [ ] { ( ( byte ) ( 32 ) ) , 8 , 0 , 10 , 1 , 2 , 3 , 4 , 5 , 6 } ; final io . netty . buffer . ByteBuf out = io . netty . buffer . Unpooled . buffer ( ) ; final io . netty . buffer . ByteBuf body = io . netty . buffer . Unpooled . copiedBuffer ( new byte [ ] { 1 ... | org . junit . Assert . assertArrayEquals ( expected , org . opendaylight . protocol . util . ByteArray . getAllBytes ( out ) ) |
testStringExtent_doesNotAssignsUnknownStringsToTextSizeMeasuringIfTemporaryResize ( ) { markTemporaryResize ( ) ; org . eclipse . rap . rwt . internal . textsize . TextSizeUtil . stringExtent ( getFont ( ) , org . eclipse . rap . rwt . internal . textsize . TextSizeUtil_Test . TEST_STRING ) ; "<AssertPlaceHolder>" ; } ... | org . junit . Assert . assertEquals ( 0 , getMeasurementItems ( ) . length ) |
testPrintServiceStats ( ) { org . opennms . util . ilr . Collector c = new org . opennms . util . ilr . Collector ( ) ; c . readLogMessagesFromFile ( "target/test-classes/TestLogFile.log" ) ; java . lang . String expectedOutput = java . lang . String . format ( Collector . SERVICE_DATA_FORMAT , "example1/24/216.216.217... | org . junit . Assert . assertEquals ( expectedOutput , actualOutput ) |
testPreCommitAcksWithMessageExpirySetOnConnectionFactory ( ) { ( ( org . apache . activemq . artemis . jms . client . ActiveMQConnectionFactory ) ( cf ) ) . setPreAcknowledge ( true ) ; conn = cf . createConnection ( ) ; javax . jms . Session session = conn . createSession ( false , Session . CLIENT_ACKNOWLEDGE ) ; jBo... | org . junit . Assert . assertNull ( m ) |
simpleSerialization2 ( ) { de . rub . nds . tlsattacker . core . workflow . factory . WorkflowConfigurationFactory cf = new de . rub . nds . tlsattacker . core . workflow . factory . WorkflowConfigurationFactory ( de . rub . nds . tlsattacker . core . config . Config . createConfig ( ) ) ; de . rub . nds . tlsattacker ... | org . junit . Assert . assertNotNull ( xmlString ) |
testIndexOf ( ) { org . jfree . data . xy . XIntervalSeries s1 = new org . jfree . data . xy . XIntervalSeries ( "Series<sp>1" ) ; s1 . add ( 1.0 , 1.0 , 1.0 , 2.0 ) ; s1 . add ( 2.0 , 2.0 , 2.0 , 3.0 ) ; s1 . add ( 3.0 , 3.0 , 3.0 , 4.0 ) ; "<AssertPlaceHolder>" ; } indexOf ( java . lang . Object ) { return super . in... | org . junit . Assert . assertEquals ( 0 , s1 . indexOf ( new java . lang . Double ( 1.0 ) ) ) |
testReadWithCallback ( ) { final org . csstudio . vtype . pv . jca . JCA_PV pv = ( ( org . csstudio . vtype . pv . jca . JCA_PV ) ( org . csstudio . vtype . pv . PVPool . getPV ( "motor_x" ) ) ) ; try { pv . asyncRead ( ) ; } catch ( java . lang . Exception ex ) { System . out . println ( "Waiting<sp>for<sp>channel<sp>... | org . junit . Assert . assertThat ( value . isDone ( ) , org . hamcrest . CoreMatchers . equalTo ( true ) ) |
testCalls ( ) { updateAddressPort ( org . apache . cxf . transport . http . asyncclient . AsyncHTTPConduitTest . g , org . apache . cxf . transport . http . asyncclient . AsyncHTTPConduitTest . PORT ) ; for ( int x = 0 ; x < 10000 ; x ++ ) { java . lang . String value = org . apache . cxf . transport . http . asyncclie... | org . junit . Assert . assertEquals ( ( "Hello<sp>" + ( org . apache . cxf . transport . http . asyncclient . AsyncHTTPConduitTest . request ) ) , value ) |
reportsTwoOngoingTreatments ( ) { final java . util . List < com . hartwig . hmftools . common . ecrf . datamodel . ValidationFinding > findings = com . hartwig . hmftools . patientdb . validators . PatientValidator . validateTreatments ( com . hartwig . hmftools . patientdb . validators . PatientValidatorTest . PATIEN... | org . junit . Assert . assertEquals ( 3 , findings . size ( ) ) |
testDeleteUser ( ) { org . candlepin . model . User user = new org . candlepin . model . User ( ) ; user . setUsername ( "test-user" ) ; user . setPassword ( "banana" ) ; user . setSuperAdmin ( true ) ; this . userCurator . create ( user ) ; this . resource . deleteUser ( user . getUsername ( ) ) ; org . candlepin . mo... | org . junit . Assert . assertNull ( existing ) |
testRun_chainsSubPrograms ( ) { org . apache . calcite . tools . Program subProgram2 = org . mockito . Mockito . mock ( org . apache . calcite . tools . Program . class ) ; org . apache . calcite . rel . RelNode node2 = org . mockito . Mockito . mock ( org . apache . calcite . rel . RelNode . class ) ; org . apache . c... | org . junit . Assert . assertSame ( node3 , result ) |
testReadResetRead ( ) { javax . imageio . stream . ImageInputStream stream = new com . twelvemonkeys . imageio . stream . SubImageInputStream ( createStream ( 32 ) , 16 ) ; stream . mark ( ) ; byte [ ] first = new byte [ 16 ] ; stream . readFully ( first ) ; stream . reset ( ) ; byte [ ] second = new byte [ 16 ] ; stre... | org . junit . Assert . assertTrue ( java . util . Arrays . equals ( first , second ) ) |
beanBound_bindSelect_selectionUpdated ( ) { item . setEnums ( java . util . Collections . singleton ( TestEnum . TWO ) ) ; binder . setBean ( item ) ; binder . forField ( select ) . bind ( BeanWithEnums :: getEnums , BeanWithEnums :: setEnums ) ; "<AssertPlaceHolder>" ; } getSelectedItems ( ) { final com . vaadin . cli... | org . junit . Assert . assertEquals ( java . util . Collections . singleton ( TestEnum . TWO ) , select . getSelectedItems ( ) ) |
equalsTest ( ) { model . datafield . DataFieldInt other = new model . datafield . DataFieldInt ( 2 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( o instanceof model . datafield . DataFieldDouble ) { return ( ( ( model . datafield . DataFieldDouble ) ( o ) ) . value ) == ( this . value ) ; } else i... | org . junit . Assert . assertTrue ( test . equals ( other ) ) |
metadata_xmlComplexTypePropertyComplexTypefalse ( ) { final java . lang . String entryName = "bar/90_contents/odatacol1/00_$metadata.xml" ; final java . lang . String filename = "/00_$metadata_compprop_type_notexist.xml" ; java . net . URL fileUrl = java . lang . ClassLoader . getSystemResource ( ( ( com . fujitsu . dc... | org . junit . Assert . assertFalse ( res ) |
fromCodeSWTTokenTypeTests ( ) { com . microsoft . windowsazure . services . media . implementation . templates . tokenrestriction . TokenType expectedTokenType = com . microsoft . windowsazure . services . media . implementation . templates . tokenrestriction . TokenType . SWT ; com . microsoft . windowsazure . service... | org . junit . Assert . assertEquals ( tokenTypeResult , expectedTokenType ) |
testOLCI ( ) { org . esa . snap . core . datamodel . Product product = new org . esa . snap . core . datamodel . Product ( "dummy" , "dummy" , 2 , 2 ) ; product . addBand ( "Oa01_reflectance" , ProductData . TYPE_INT8 ) ; product . addBand ( "Oa02_reflectance" , ProductData . TYPE_INT8 ) ; product . addBand ( "Oa03_ref... | org . junit . Assert . assertEquals ( Instrument . OLCI , org . esa . s3tbx . fu . DetectInstrument . getInstrument ( product ) ) |
shouldPassSortColumnToDataRows ( ) { this . uiPagedData . setSortColumn ( "sort" ) ; this . uiPagedData . encodeEnd ( this . context ) ; org . springframework . springfaces . page . model . PagedDataRows rows = ( ( org . springframework . springfaces . page . model . PagedDataRows ) ( this . requestMap . get ( "pagedDa... | org . junit . Assert . assertThat ( rows . getSortColumn ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( "sort" ) ) ) |
isOwnerWithGuestOwnerForGuests ( ) { org . phenotips . data . Patient p = mock ( org . phenotips . data . Patient . class ) ; org . phenotips . data . permissions . internal . EntityAccessHelper h = mock ( org . phenotips . data . permissions . internal . EntityAccessHelper . class ) ; org . phenotips . data . permissi... | org . junit . Assert . assertTrue ( pa . isOwner ( ) ) |
testDao ( ) { "<AssertPlaceHolder>" ; } getDao ( ) { return ( ( es . ieci . tecdoc . fwktd . server . dao . BaseDao ) ( getInteresadoDao ( ) ) ) ; } | org . junit . Assert . assertNotNull ( getDao ( ) ) |
shouldFindExactMatches ( ) { final java . lang . String value = "org.foo.foo" ; final org . pitest . util . Glob glob = new org . pitest . util . Glob ( value ) ; "<AssertPlaceHolder>" ; } matches ( java . lang . Object ) { final org . apache . tools . ant . types . Path argPath = ( ( org . apache . tools . ant . types... | org . junit . Assert . assertTrue ( glob . matches ( value ) ) |
shouldDoNothingIfCapabilitiesUsedToConfigureMutatorAreNotFirefoxBased ( ) { org . openqa . selenium . ImmutableCapabilities config = new org . openqa . selenium . ImmutableCapabilities ( "browserName" , "foo" , "firefox_binary" , "cake" ) ; org . openqa . selenium . ImmutableCapabilities caps = new org . openqa . selen... | org . junit . Assert . assertSame ( caps , seen ) |
testImageEqualToReference_equalImagesDifferentSize_false ( ) { com . vaadin . testbench . screenshot . ImageComparison ic = new com . vaadin . testbench . screenshot . ImageComparison ( ) ; java . awt . image . BufferedImage screenshotImage = com . vaadin . testbench . testutils . ImageLoader . loadImage ( com . vaadin... | org . junit . Assert . assertFalse ( ic . imageEqualToReference ( screenshotImage , referenceImage , "16x16-reference.png" , 0 ) ) |
testDynamicPersisted ( ) { java . net . URL location = getStorageLocation ( ) ; "<AssertPlaceHolder>" ; org . osgi . framework . Bundle bundle01 = null ; org . osgi . framework . Bundle bundle02 = null ; try { { bundle01 = installBundle ( "priority/low" ) ; org . eclipse . equinox . security . storage . ISecurePreferen... | org . junit . Assert . assertNotNull ( location ) |
testValueConversionToM3s ( ) { tec . uom . se . ComparableQuantity < org . eclipse . smarthome . core . library . dimension . VolumetricFlowRate > quantity = tec . uom . se . quantity . Quantities . getQuantity ( value , unit ) ; tec . uom . se . ComparableQuantity < org . eclipse . smarthome . core . library . dimensi... | org . junit . Assert . assertThat ( convertedQuantity , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( quantityInBase ) ) ) |
testType ( ) { com . redhat . lightblue . metadata . types . ReferenceType referenceType = ReferenceType . TYPE ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( referenceType ) |
testMultivariateFactorization24 ( ) { cc . redberry . rings . poly . multivar . IntegersZp64 domain = new cc . redberry . rings . poly . multivar . IntegersZp64 ( 2 ) ; java . lang . String [ ] vars = new java . lang . String [ ] { "a" , "b" , "c" , "d" , "e" } ; cc . redberry . rings . poly . multivar . MultivariatePo... | org . junit . Assert . assertEquals ( 3 , decomposition . size ( ) ) |
getServerBaseUrl_WithoutSlash ( ) { java . lang . String value = "someurl" ; when ( mock . getVOConfigurationSetting ( eq ( ConfigurationKey . BASE_URL ) , anyString ( ) ) ) . thenReturn ( createSetting ( ConfigurationKey . BASE_URL , value ) ) ; "<AssertPlaceHolder>" ; } getServerBaseUrl ( ) { if ( ( serverBaseUrl ) =... | org . junit . Assert . assertEquals ( value , bean . getServerBaseUrl ( ) ) |
testOrderEntries ( ) { java . util . List < we . retail . core . model . ShoppingCartModel . CartEntry > entries = orderModel . getEntries ( ) ; "<AssertPlaceHolder>" ; } getEntries ( ) { return java . util . Collections . unmodifiableList ( entries ) ; } | org . junit . Assert . assertEquals ( 0 , entries . size ( ) ) |
testUserGroupRoleTrue ( ) { boolean result = _callTestUserGroupRole ( true ) ; "<AssertPlaceHolder>" ; } _callTestUserGroupRole ( boolean ) { when ( _roleLocalService . fetchRole ( 1 , "test" ) ) . thenReturn ( _role ) ; when ( _role . getType ( ) ) . thenReturn ( RoleConstants . TYPE_ORGANIZATION ) ; when ( _userGroup... | org . junit . Assert . assertTrue ( result ) |
testQualityScoresIntArray ( ) { int [ ] qualityScores = new int [ 4 ] ; org . biojava . nbio . genome . io . fastq . FastqTools . qualityScores ( builder . build ( ) , qualityScores ) ; for ( int i = 0 ; i < 4 ; i ++ ) { "<AssertPlaceHolder>" ; } } build ( ) { if ( ( description ) == null ) { throw new java . lang . Il... | org . junit . Assert . assertTrue ( ( ( qualityScores [ i ] ) != 0 ) ) |
testPidSpecificPlugin ( ) { org . eclipse . equinox . cm . test . Configuration config = cm . getConfiguration ( "test" ) ; org . eclipse . equinox . cm . test . Dictionary < java . lang . String , java . lang . Object > props = new org . eclipse . equinox . cm . test . Hashtable < java . lang . String , java . lang . ... | org . junit . Assert . assertTrue ( success ) |
testFindCurrentByDateRange ( ) { java . lang . String monthCode = "A" ; java . lang . String groupNo = "101" ; java . util . Date startDate = new java . util . Date ( dfm . parse ( "20090101" ) . getTime ( ) ) ; java . util . Date endDate = new java . util . Date ( dfm . parse ( "20090301" ) . getTime ( ) ) ; org . osc... | org . junit . Assert . assertTrue ( true ) |
jaroWinkler ( ) { "<AssertPlaceHolder>" ; } jaroWinkler ( ) { org . junit . Assert . assertNotNull ( org . simmetrics . metrics . StringDistances . jaroWinkler ( ) ) ; } | org . junit . Assert . assertNotNull ( org . simmetrics . metrics . StringDistances . jaroWinkler ( ) ) |
test_simple_replace_2 ( ) { final java . lang . String input = "{{!\n" + ( ( ( ( ( ( "\n" + "PREFIX<sp>local<sp>:<sp><http://localhost/local/>\n" ) + "<sp>PREFIX<sp>:<sp><http://default/>\n" ) + "\n" ) + "}}\n" ) + "{{:name}}\n" ) + "{{local:name}}" ) ; final java . lang . String expected = "\n" + ( "{{http://default/n... | org . junit . Assert . assertEquals ( expected , com . linkedpipes . plugin . transformer . mustachechunked . MustacheTemplatePrefixExpander . expand ( input ) ) |
testGetParametersWithDefaultEntity ( ) { org . lnu . is . domain . family . type . FamilyType entity = new org . lnu . is . domain . family . type . FamilyType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , java . lang . Object > ( )... | org . junit . Assert . assertEquals ( expected , actual ) |
testSetHardLimit ( ) { subject . setHardLimit ( 3 ) ; subject . popEntry ( 0 ) ; subject . popEntry ( 1 ) ; subject . popEntry ( 2 ) ; "<AssertPlaceHolder>" ; } popEntry ( CONTAINED_TYPE ) { final org . jtrfp . trcl . pool . EntryBasedIndexPool . Entry < CONTAINED_TYPE > result = new org . jtrfp . trcl . pool . EntryBa... | org . junit . Assert . assertEquals ( null , subject . popEntry ( 3 ) ) |
validatePartialEncoding_shouldBeValid ( ) { org . digidoc4j . impl . bdoc . Container container = this . openContainerByConfiguration ( java . nio . file . Paths . get ( "src/test/resources/testFiles/valid-containers/et10_0123456789!#$%&'()+,-.<sp>;=@[]_`}-<sp>et_EE_utf8.zip-d_ec.bdoc" ) , this . configuration ) ; "<As... | org . junit . Assert . assertTrue ( container . validate ( ) . isValid ( ) ) |
testRemoveJobName_Null ( ) { final java . util . Map < java . lang . String , java . lang . Class < ? > > jobTypes = new java . util . HashMap < java . lang . String , java . lang . Class < ? > > ( ) ; jobTypes . put ( "TestRunnableJob" , net . greghaines . jesque . worker . TestMapBasedJobFactory . TestRunnableJob . c... | org . junit . Assert . assertEquals ( jobTypes , jobFactory . getJobTypes ( ) ) |
lfuFileCacheTest ( ) { cn . hutool . cache . file . LFUFileCache cache = new cn . hutool . cache . file . LFUFileCache ( 1000 , 500 , 2000 ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( cache ) |
shouldPlaceItemWhenCapacityAllowsIt ( ) { net . simon987 . server . game . objects . ItemsContainer itemsContainer = new net . simon987 . server . game . objects . ItemsContainer ( 1 ) ; boolean result = itemsContainer . placeItem ( new net . simon987 . server . game . item . ItemCopper ( ) ) ; "<AssertPlaceHolder>" ; ... | org . junit . Assert . assertEquals ( true , result ) |
testHeadersHandler ( ) { TestLogger . logger . debug ( "----------------------------------" ) ; org . apache . axis2 . jaxws . sample . headershandler . HeadersHandlerService service = new org . apache . axis2 . jaxws . sample . headershandler . HeadersHandlerService ( ) ; org . apache . axis2 . jaxws . sample . header... | org . junit . Assert . assertEquals ( expected_calls , log ) |
testAwaitInputInSocket ( ) { final java . io . ByteArrayInputStream inStream = org . mockito . Mockito . spy ( new java . io . ByteArrayInputStream ( new byte [ ] { 1 , 2 , 3 , 4 , 5 } ) ) ; org . mockito . Mockito . when ( socket . getInputStream ( ) ) . thenReturn ( inStream ) ; org . mockito . Mockito . when ( socke... | org . junit . Assert . assertTrue ( conn . awaitInput ( 432 ) ) |
testNotValidEquation ( ) { shape . setPlotEquation ( "x" ) ; shape . setPlotEquation ( "" ) ; "<AssertPlaceHolder>" ; } getPlotEquation ( ) { return equation . get ( ) ; } | org . junit . Assert . assertEquals ( "x" , shape . getPlotEquation ( ) ) |
removeFromKeySet ( ) { super . removeFromKeySet ( ) ; org . eclipse . collections . impl . map . mutable . primitive . ObjectBooleanHashMapWithHashingStrategy < org . eclipse . collections . impl . test . domain . Person > map = org . eclipse . collections . impl . map . mutable . primitive . ObjectBooleanHashMapWithHa... | org . junit . Assert . assertEquals ( map , org . eclipse . collections . impl . map . mutable . primitive . ObjectBooleanHashMapWithHashingStrategy . newWithKeysValues ( org . eclipse . collections . impl . map . mutable . primitive . ObjectBooleanHashMapWithHashingStrategyKeySetTest . LAST_NAME_HASHING_STRATEGY , org... |
shouldBeAbleToInjectBaseContextOnMethod ( ) { java . lang . reflect . Method resourceMethod = org . jboss . arquillian . test . impl . enricher . resource . ArquillianResourceTestEnricherTestCase . ObjectClass . class . getMethod ( "test" , java . lang . Object . class ) ; org . mockito . Mockito . when ( resourceProvi... | org . junit . Assert . assertEquals ( resource , result [ 0 ] ) |
testUpdateRole ( ) { com . gisgraphy . model . Role role = roleDao . getRoleByName ( "ROLE_USER" ) ; role . setDescription ( "test<sp>descr" ) ; roleDao . save ( role ) ; flush ( ) ; role = roleDao . getRoleByName ( "ROLE_USER" ) ; "<AssertPlaceHolder>" ; } getDescription ( ) { return this . description ; } | org . junit . Assert . assertEquals ( "test<sp>descr" , role . getDescription ( ) ) |
testOneArgumentConstructorSuccess ( ) { java . lang . String name = "Distance" ; dimension = new org . goodoldai . jeff . explanation . data . Dimension ( name ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; } | org . junit . Assert . assertEquals ( name , dimension . getName ( ) ) |
testGeefObjectenVanElement_emptySet ( ) { java . util . Collection < nl . bzk . brp . domain . leveringmodel . MetaObject > alleAdresObjecten = modelAanwijzer . geefObjecten ( getObjectElement ( Element . PERSOON_NATIONALITEIT . getId ( ) ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return elementen . isEmpty ( ) ; } | org . junit . Assert . assertTrue ( alleAdresObjecten . isEmpty ( ) ) |
testToModel_4 ( ) { double d = - ( Float . MAX_VALUE ) ; com . google . cloud . datastore . DoubleValue input = com . google . cloud . datastore . DoubleValue . of ( d ) ; com . jmethods . catatumbo . mappers . FloatMapper mapper = new com . jmethods . catatumbo . mappers . FloatMapper ( ) ; float output = ( ( float ) ... | org . junit . Assert . assertTrue ( ( ( - ( Float . MAX_VALUE ) ) == output ) ) |
testGetSessionDisplayFromBackgroundThreadWithContext ( ) { final org . eclipse . swt . widgets . Display display = new org . eclipse . swt . widgets . Display ( ) ; final java . util . concurrent . atomic . AtomicReference < org . eclipse . swt . widgets . Display > sessionDisplay = new java . util . concurrent . atomi... | org . junit . Assert . assertSame ( display , sessionDisplay . get ( ) ) |
testOwnerPoolEnabledZeroCount ( ) { pool1 . setAttribute ( Pool . Attributes . ENABLED_CONSUMER_TYPES , "non-type" ) ; owner . addEntitlementPool ( pool1 ) ; org . candlepin . model . OwnerInfo info = ownerInfoCurator . getByOwner ( owner ) ; java . util . Map < java . lang . String , java . lang . Integer > expectedPo... | org . junit . Assert . assertEquals ( expectedPoolCount , info . getEnabledConsumerTypeCountByPool ( ) ) |
shouldParseToJodaInterval ( ) { org . n52 . io . IntervalWithTimeZone interval = new org . n52 . io . IntervalWithTimeZone ( org . n52 . io . IntervalWithTimeZoneTest . VALID_ISO8601_RELATIVE_START ) ; "<AssertPlaceHolder>" ; } toInterval ( ) { return org . joda . time . Interval . parse ( timespan ) ; } | org . junit . Assert . assertThat ( interval . toInterval ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( new org . joda . time . Interval ( org . n52 . io . IntervalWithTimeZoneTest . VALID_ISO8601_RELATIVE_START ) ) ) ) |
testWithNativeHTTPDataLoader ( ) { eu . europa . esig . dss . client . tsp . OnlineTSPSource tspSource = new eu . europa . esig . dss . client . tsp . OnlineTSPSource ( eu . europa . esig . dss . client . tsp . OnlineTSPSourceTest . TSA_URL ) ; tspSource . setDataLoader ( new eu . europa . esig . dss . client . http . ... | org . junit . Assert . assertNotNull ( timeStampResponse ) |
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 ( systemEvents . isEmpty ( ) ) |
testShowFilesInWSWithNoPermissionsForQueryUser ( ) { updateClient ( org . apache . drill . exec . impersonation . TestImpersonationMetadata . user2 ) ; int count = testSql ( java . lang . String . format ( "SHOW<sp>FILES<sp>IN<sp>%s.drill_test_grp_1_700" , org . apache . drill . exec . impersonation . MINI_DFS_STORAGE_... | org . junit . Assert . assertEquals ( 0 , count ) |
testValidateLimits10 ( ) { java . lang . String string = new java . lang . String ( new int [ ] { 48 } , 0 , 1 ) ; boolean result = org . oscm . validator . ADMValidator . containsOnlyValidIdChars ( string ) ; "<AssertPlaceHolder>" ; } containsOnlyValidIdChars ( java . lang . String ) { if ( value == null ) { return tr... | org . junit . Assert . assertTrue ( result ) |
testRemoveMultipleElements ( ) { java . util . List < java . lang . String > list = new java . util . ArrayList ( ) ; list . add ( "aaa" ) ; list . add ( "bbb" ) ; list . add ( "ccc" ) ; java . util . List < java . lang . String > removeList = new java . util . ArrayList ( ) ; removeList . add ( "aaa" ) ; removeList . ... | org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , com . liferay . portal . kernel . util . ListUtil . remove ( list , removeList ) ) |
testUUIDPrimaryKeyV4 ( ) { log . info ( "...<sp>testUUIDPrimaryKeyV4<sp>..." ) ; javax . persistence . EntityManager em = emf . createEntityManager ( ) ; em . getTransaction ( ) . begin ( ) ; org . thoughts . on . java . model . Author a = new org . thoughts . on . java . model . Author ( ) ; a . setFirstName ( "Thorbe... | org . junit . Assert . assertEquals ( uuid , a . getId ( ) ) |
toSimpleValue_emptyM ( ) { java . util . Map < java . lang . String , software . amazon . awssdk . services . dynamodb . model . AttributeValue > mapFrom = new java . util . HashMap < java . lang . String , software . amazon . awssdk . services . dynamodb . model . AttributeValue > ( ) ; java . util . Map < java . lang... | org . junit . Assert . assertTrue ( ( ( mapTo . size ( ) ) == 0 ) ) |
searchProcessDeploymentInfosCanBeStartedBy ( ) { final org . bonitasoft . engine . persistence . QueryOptions options = new org . bonitasoft . engine . persistence . QueryOptions ( 0 , 10 ) ; final long userId = 9 ; when ( persistenceService . searchEntity ( org . bonitasoft . engine . core . process . definition . mod... | org . junit . Assert . assertNotNull ( result ) |
manageModificationVDiskCreation_VSDISK_ATTACHING ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSDISK_ATTACHING ; org . oscm . app . iaas . data . FlowState newState = null ; newState = vServerProcessor . manageModificationVDiskCreation ( "controllerId" , "ins... | org . junit . Assert . assertNull ( newState ) |
testPreAndPostInsert_Dog ( ) { com . jmethods . catatumbo . entities . Dog dog = new com . jmethods . catatumbo . entities . Dog ( ) ; dog = com . jmethods . catatumbo . ListenerInheritanceTest . em . insert ( dog ) ; java . lang . String preInsertClassName = com . jmethods . catatumbo . PreInsert . class . getSimpleNa... | org . junit . Assert . assertEquals ( expected , dog . getValue ( ) ) |
testGetParameters ( ) { java . lang . String name = "Extract<sp>Me<sp>All" ; java . lang . String abbrName = "EML" ; org . lnu . is . domain . street . type . StreetType entity = new org . lnu . is . domain . street . type . StreetType ( ) ; entity . setName ( name ) ; entity . setAbbrName ( abbrName ) ; java . util . ... | org . junit . Assert . assertEquals ( expected , actual ) |
followsSymlinksToFiles ( ) { com . amazonaws . codepipeline . jenkinsplugin . TestUtils . addSymlinkToFileInsideWorkspace ( ) ; final java . util . List < java . io . File > files = com . amazonaws . codepipeline . jenkinsplugin . CompressionTools . addFilesToCompress ( testDir , null ) ; "<AssertPlaceHolder>" ; } addF... | org . junit . Assert . assertEquals ( 6 , files . size ( ) ) |
shouldReturnQueryForFirstThirtyMatchesWithMoreThanTwoSubQueries ( ) { doReturn ( true ) . when ( user ) . isVerified ( ) ; com . rapidftr . repository . PaginatedSearchQueryBuilder queryBuilder = new com . rapidftr . repository . PaginatedSearchQueryBuilder ( applicationContext , "john<sp>doe<sp>foo" ) ; java . lang . ... | org . junit . Assert . assertEquals ( expectQuery , actualQuery ) |
restrictTo_fullyOutside ( ) { com . vaadin . flow . internal . Range r1 = com . vaadin . flow . internal . Range . between ( 4 , 11 ) ; com . vaadin . flow . internal . Range r2 = com . vaadin . flow . internal . Range . between ( 5 , 10 ) ; com . vaadin . flow . internal . Range r3 = r1 . restrictTo ( r2 ) ; "<AssertP... | org . junit . Assert . assertTrue ( ( r2 == r3 ) ) |
testParseNegativeX ( ) { java . lang . String source = ( ( ( ( ( "{-1" + ( getDecimalCharacter ( ) ) ) + "2323;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "6333}" ; org . apache . commons . math . linear . ArrayRealVector expected = new org . apache . commons . math . lin... | org . junit . Assert . assertEquals ( expected , actual ) |
testThreePartyValidMacCheck ( ) { initContexts ( 3 ) ; dk . alexandra . fresco . framework . builder . numeric . field . FieldElement openedOne = getFieldDefinition ( ) . createElement ( 42 ) ; dk . alexandra . fresco . framework . builder . numeric . field . FieldElement macKeyShareOne = getFieldDefinition ( ) . creat... | org . junit . Assert . assertEquals ( false , res . getFirst ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.