input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
shouldAcceptWhenOnlyWeightIsSet ( ) { node . setCondition ( null ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( node , org . openstack . atlas . api . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } passedValidation ( ) { return expectationResultLi... | org . junit . Assert . assertTrue ( result . passedValidation ( ) ) |
statusRecordsTheStartTime ( ) { final java . time . LocalDateTime startTime = java . time . LocalDateTime . of ( 2017 , Month . APRIL , 1 , 19 , 9 ) ; final com . iluwatar . databus . data . StartingData startingData = new com . iluwatar . databus . data . StartingData ( startTime ) ; final com . iluwatar . databus . m... | org . junit . Assert . assertEquals ( startTime , statusMember . getStarted ( ) ) |
testGetBasesForSample ( ) { java . lang . Long sampleID = 1L ; ca . corefacility . bioinformatics . irida . model . sample . Sample s = sampleService . read ( sampleID ) ; long bases = sampleService . getTotalBasesForSample ( s ) ; "<AssertPlaceHolder>" ; } getTotalBasesForSample ( ca . corefacility . bioinformatics . ... | org . junit . Assert . assertEquals ( 1000 , bases ) |
testGetArtistHead ( ) { javax . ws . rs . core . Response response = spotify . getArtistHeadReq ( "0OdUWJ0sBjDrqHygGUXeCF" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( response . getStatus ( ) , 200 ) |
test_compare ( ) { comparisonStrategy = new net . codjo . test . release . util . comparisonstrategy . XmlComparisonStrategy ( toFile ( "FileAssertXml_expected.xml" ) , toFile ( "FileAssertXml.xml" ) ) ; "<AssertPlaceHolder>" ; } compare ( ) { org . apache . poi . hssf . usermodel . HSSFWorkbook expectedWorkbook = net ... | org . junit . Assert . assertTrue ( comparisonStrategy . compare ( ) ) |
testReadWrite ( ) { org . apache . poi . hwpf . model . FileInformationBlock fib = _hWPFDocFixture . _fib ; byte [ ] tableStream = _hWPFDocFixture . _tableStream ; int listOffset = fib . getFcPlfLst ( ) ; int lfoOffset = fib . getFcPlfLfo ( ) ; int bLfoOffset = fib . getLcbPlfLfo ( ) ; if ( ( listOffset != 0 ) && ( bLf... | org . junit . Assert . assertEquals ( listTables , newTables ) |
testNegativeAgainstUnsignedNone ( ) { java . lang . String query = "SELECT<sp>uint_key,<sp>ulong_key,<sp>string_key<sp>FROM<sp>HBASE_NATIVE<sp>WHERE<sp>ulong_key<sp><<sp>-1" ; java . lang . String url = ( ( ( ( PHOENIX_JDBC_URL ) + ";" ) + ( com . salesforce . phoenix . util . PhoenixRuntime . CURRENT_SCN_ATTRIB ) ) + ... | org . junit . Assert . assertFalse ( rs . next ( ) ) |
testRemoveInt ( ) { org . ccnx . ccn . impl . support . Log . info ( Log . FAC_TEST , "Starting<sp>testRemoveInt" ) ; org . ccnx . ccn . io . content . Collection cd = new org . ccnx . ccn . io . content . Collection ( ) ; for ( int i = 0 ; i < ( org . ccnx . ccn . io . content . CollectionTest . lrs . length ) ; ++ i ... | org . junit . Assert . assertEquals ( cd . get ( 0 ) , org . ccnx . ccn . io . content . CollectionTest . lrs [ 1 ] ) |
testArraySerialization ( ) { com . owlike . genson . Genson genson = createTimestampGenson ( java . time . LocalDateTime . class , TimestampFormat . ARRAY ) ; java . time . LocalDateTime dt = java . time . LocalDateTime . of ( 2011 , 11 , 10 , 9 , 8 , 7 , 1223 ) ; java . lang . String expectedJson = toJsonArray ( 2011 ... | org . junit . Assert . assertEquals ( expectedJson , genson . serialize ( dt ) ) |
testRemove ( ) { com . liferay . portal . workflow . kaleo . model . KaleoDefinitionVersion newKaleoDefinitionVersion = addKaleoDefinitionVersion ( ) ; _persistence . remove ( newKaleoDefinitionVersion ) ; com . liferay . portal . workflow . kaleo . model . KaleoDefinitionVersion existingKaleoDefinitionVersion = _persi... | org . junit . Assert . assertNull ( existingKaleoDefinitionVersion ) |
test_property_hashCode ( ) { org . joda . beans . sample . Person obj1 = new org . joda . beans . sample . Person ( ) ; org . joda . beans . sample . Person obj2 = new org . joda . beans . sample . Person ( ) ; org . joda . beans . Property < java . lang . String > p1 = obj1 . forename ( ) ; org . joda . beans . Proper... | org . junit . Assert . assertEquals ( p1 . hashCode ( ) , p2 . hashCode ( ) ) |
testECDSAWrongPassphrase ( ) { java . security . KeyPair keyPair = instance . decodePrivateKey ( "src/test/resources/ecdsa_encrypted" , "wrong" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNull ( keyPair ) |
testWriteUsAsciiComposite ( ) { java . lang . String usAscii = "NettyRocks" ; io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . buffer ( 16 ) ; buf . writeBytes ( usAscii . getBytes ( CharsetUtil . US_ASCII ) ) ; io . netty . buffer . ByteBuf buf2 = io . netty . buffer . Unpooled . compositeBuffer ( ... | org . junit . Assert . assertEquals ( buf , buf2 . skipBytes ( 1 ) ) |
testSetTextNotEditable ( ) { combo . setEditable ( false ) ; combo . setText ( "foo" ) ; "<AssertPlaceHolder>" ; } getText ( ) { checkWidget ( ) ; return getText ( 0 ) ; } | org . junit . Assert . assertEquals ( "foo" , combo . getText ( ) ) |
testSymmetric6 ( ) { com . oculusinfo . ml . feature . spatial . GeoSpatialFeature t1 = new com . oculusinfo . ml . feature . spatial . GeoSpatialFeature ( ) ; t1 . setValue ( ( - 82.8627519 ) , ( - 135.0 ) ) ; com . oculusinfo . ml . feature . spatial . GeoSpatialFeature t2 = new com . oculusinfo . ml . feature . spat... | org . junit . Assert . assertTrue ( isEqual ( d1 , d2 ) ) |
testAFileShouldNotHoldAnyDocument ( ) { info . novatec . testit . livingdoc . repository . List < java . lang . String > listing = repository . listDocuments ( createDocument ( root , "test.html" ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return messages . isEmpty ( ) ; } | org . junit . Assert . assertTrue ( listing . isEmpty ( ) ) |
testLower ( ) { jenkins . model . lazy . SortedIntList l = new jenkins . model . lazy . SortedIntList ( 5 ) ; l . add ( 0 ) ; l . add ( 5 ) ; l . add ( 10 ) ; "<AssertPlaceHolder>" ; } lower ( int ) { return Boundary . LOWER . apply ( find ( v ) ) ; } | org . junit . Assert . assertEquals ( 2 , l . lower ( Integer . MAX_VALUE ) ) |
testRetrieveActionsByServiceIDType ( ) { System . out . println ( "testRetrieveActionsByServiceIDType" ) ; createModel ( ) ; org . societies . personalisation . CAUI . api . model . UserIntentModelData modelData = modelManager . retrieveModel ( ) ; System . out . println ( ( "testRetrieveActionsByServiceIDType<sp>getAc... | org . junit . Assert . assertEquals ( 2 , userActionList . size ( ) ) |
testComplexRecord ( ) { io . cdap . cdap . api . data . schema . Schema complexSchema = io . cdap . cdap . api . data . schema . Schema . recordOf ( "record21:RECORD" 3 , Schema . Field . of ( "record21:RECORD" 0 , io . cdap . cdap . api . data . schema . Schema . mapOf ( io . cdap . cdap . api . data . schema . Schema... | org . junit . Assert . assertEquals ( addKeyPrefixAndPropertiesField ( expected ) , actual ) |
map_slot_3 ( ) { org . apache . jena . atlas . lib . tuple . TupleMap tmap = org . apache . jena . atlas . lib . tuple . TupleMap . create ( "POS" , "SPO" ) ; org . apache . jena . atlas . lib . tuple . Tuple < java . lang . String > tuple = org . apache . jena . atlas . lib . tuple . TupleFactory . tuple ( "P" , "O" ,... | org . junit . Assert . assertEquals ( tuple2 , tuple1 ) |
testEmptyMailboxList ( ) { org . apache . james . mime4j . dom . address . MailboxList ml = new org . apache . james . mime4j . dom . address . MailboxList ( null , false ) ; "<AssertPlaceHolder>" ; try { ml . get ( ( - 1 ) ) ; org . junit . Assert . fail ( "Expected<sp>index<sp>out<sp>of<sp>bound<sp>exception!" ) ; } ... | org . junit . Assert . assertEquals ( 0 , ml . size ( ) ) |
testDeleteRule ( ) { System . out . println ( ( ( getTestTraceHead ( "[CygnusGroupingRules.deleteRule]" ) ) + "--------<sp>Deleting<sp>an<sp>existent<sp>rule<sp>works" ) ) ; java . util . ArrayList < java . lang . String > ruleFields = new java . util . ArrayList < java . lang . String > ( ) ; ruleFields . add ( "servi... | org . junit . Assert . assertTrue ( ( ( cygnusGroupingRules . getRules ( ) . size ( ) ) == 0 ) ) |
getAvailableLanguages ( ) { java . util . Set < java . lang . String > availableLanguages = org . mycore . services . i18n . MCRTranslation . getAvailableLanguages ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return oldIdentifiers . size ( ) ; } | org . junit . Assert . assertEquals ( 4 , availableLanguages . size ( ) ) |
testBlueOverHorizontal ( ) { expected = loadCompatibleImage ( org . jdesktop . swingx . graphics . BlendCompositeTest . class . getResourceAsStream ( "blue-over-horizontal.gif" ) ) ; java . awt . image . BufferedImage blue = org . jdesktop . swingx . util . GraphicsUtilities . createCompatibleImage ( org . jdesktop . s... | org . junit . Assert . assertArrayEquals ( getPixels ( expected , 0 , 0 , expected . getWidth ( ) , expected . getHeight ( ) , null ) , getPixels ( actual , 0 , 0 , actual . getWidth ( ) , actual . getHeight ( ) , null ) ) |
testReadFileContents ( ) { java . lang . String expectedContents = "Hello,<sp>world!\nThis<sp>is<sp>a<sp>test<sp>with<sp>Unicode<sp>✓." ; java . lang . String testFile = com . hazelcast . kubernetes . HazelcastKubernetesDiscoveryStrategyTest . createTestFile ( expectedContents ) ; java . lang . String actualContents = ... | org . junit . Assert . assertEquals ( expectedContents , actualContents ) |
testGetArgumentDesc ( ) { System . out . println ( "getArgumentDesc" ) ; kg . apc . jmeter . functions . IsDefined instance = new kg . apc . jmeter . functions . IsDefined ( ) ; java . util . List result = instance . getArgumentDesc ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return graphRow . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , result . size ( ) ) |
validate_returnsTrue ( ) { boolean result = confirmation . validate ( ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; } | org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( true ) ) |
test_collectFromMailContent ( ) { final de . metas . inbound . mail . MailContent expected = de . metas . inbound . mail . MailContent . builder ( ) . text ( "test<sp>text" ) . html ( "<div>some<sp>html</div>" ) . build ( ) ; final de . metas . inbound . mail . MailContent actual = de . metas . inbound . mail . MailCon... | org . junit . Assert . assertEquals ( expected , actual ) |
testResumeOK ( ) { net . holmes . core . business . media . MediaManager mediaManager = createMock ( net . holmes . core . business . media . MediaManager . class ) ; net . holmes . core . business . streaming . StreamingManager streamingManager = createMock ( net . holmes . core . business . streaming . StreamingManag... | org . junit . Assert . assertNull ( result ) |
testToStringWithoutWipVersion ( ) { java . lang . String componentVersion = "8.0.6-alpha" ; int wineryVersion = 1 ; int wipVersion = 0 ; org . eclipse . winery . common . version . WineryVersion v = new org . eclipse . winery . common . version . WineryVersion ( componentVersion , wineryVersion , wipVersion ) ; java . ... | org . junit . Assert . assertEquals ( expected , v . toString ( ) ) |
testNullToBoolean ( ) { boolean b = converter . convertTo ( boolean . class , null ) ; "<AssertPlaceHolder>" ; } convertTo ( java . lang . Class , java . lang . Object ) { return convertTo ( type , null , value ) ; } | org . junit . Assert . assertFalse ( b ) |
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . journal . model . JournalArticleLocalization > journalArticleLocalizations = _persistence... | org . junit . Assert . assertTrue ( journalArticleLocalizations . isEmpty ( ) ) |
handlesManyLargeMessages ( ) { System . out . println ( "handlesManyLargeMessages" ) ; rx . Scheduler scheduler = com . github . davidmoten . rx . internal . operators . OperatorBufferToFileTest . createSingleThreadScheduler ( ) ; com . github . davidmoten . rx . buffertofile . DataSerializer < java . lang . Integer > ... | org . junit . Assert . assertEquals ( max , last ) |
testCannotConvert ( ) { java . lang . Object result = com . orientechnologies . orient . core . metadata . schema . OType . convert ( true , com . orientechnologies . orient . core . metadata . schema . Long . class ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . Object , java . lang . Class ) { if ( iValue == nu... | org . junit . Assert . assertEquals ( result , null ) |
testIndexOf_02_TinyData ( ) { org . riversun . finbin . BinarySearcher bs = new org . riversun . finbin . BinarySearcher ( ) ; byte [ ] srcBytes = getBytes ( "hello<sp>world" ) ; java . lang . String searchText = "world" ; byte [ ] searchBytes = getBytes ( searchText ) ; final int expected = 6 ; final int resultVal = b... | org . junit . Assert . assertEquals ( expected , resultVal ) |
checkDate7 ( ) { char y0 = '2' ; char y1 = '1' ; char y2 = '0' ; char y3 = '0' ; char M0 = '0' ; char M1 = ' | org . junit . Assert . assertEquals ( false , retval ) |
write ( ) { com . asakusafw . runtime . value . FloatOption option = new com . asakusafw . runtime . value . FloatOption ( ) ; option . modify ( 100 ) ; com . asakusafw . runtime . value . FloatOption restored = restore ( option ) ; "<AssertPlaceHolder>" ; } get ( ) { if ( canGet ) { return next ; } throw new java . io... | org . junit . Assert . assertThat ( restored . get ( ) , is ( option . get ( ) ) ) |
testCustomSuffixWithoutSeparator ( ) { testHandler = new org . apache . juli . FileHandler ( this . getTemporaryDirectory ( ) . toString ( ) , "juli." , "log" ) ; java . io . File logFile = new java . io . File ( this . getTemporaryDirectory ( ) , "juli.log" ) ; "<AssertPlaceHolder>" ; } exists ( ) { return war . exist... | org . junit . Assert . assertTrue ( logFile . exists ( ) ) |
testEasyrecDataModel_getNumItems ( ) { org . easyrec . mahout . model . EasyrecDataModel easyrecDataModel = new org . easyrec . mahout . model . EasyrecDataModel ( org . easyrec . mahout . EasyrecDataModelTest . TENANT_ID , org . easyrec . mahout . EasyrecDataModelTest . RATE_ACTION_TYPE_ID , org . easyrec . mahout . E... | org . junit . Assert . assertEquals ( 3 , numberOfItems ) |
test006_Disconnect ( ) { locator . connectServer ( ) ; locator . disconnect ( ) ; "<AssertPlaceHolder>" ; } isConnected ( ) { if ( ( ( services ) == null ) || ( ( servicesDispatch ) == null ) ) { return false ; } try { servicesDispatch . queryInterface ( IJIDispatch . IID ) ; return true ; } catch ( org . jinterop . dc... | org . junit . Assert . assertFalse ( locator . isConnected ( ) ) |
testPredict ( ) { logger . info ( "testPredict" ) ; com . datumbox . framework . common . Configuration configuration = getConfiguration ( ) ; com . datumbox . framework . core . common . dataobjects . Dataframe [ ] data = com . datumbox . framework . core . Datasets . carsNumeric ( configuration ) ; com . datumbox . f... | org . junit . Assert . assertEquals ( expResult , result ) |
testToString ( ) { java . lang . String result = fixture . toString ( ) ; java . lang . String left = "[declaration]<sp>enum[" ; "<AssertPlaceHolder>" ; } toString ( ) { return fName ; } | org . junit . Assert . assertEquals ( left , result . substring ( 0 , left . length ( ) ) ) |
testGetInetIp ( ) { "<AssertPlaceHolder>" ; } getInetIp ( ) { lodsve . web . utils . List < java . lang . String > ips = lodsve . web . utils . IpUtils . getInetIps ( ) ; for ( java . lang . String ip : ips ) { if ( ! ( "127.0.0.1" . equals ( ip ) ) ) { return ip ; } } return "127.0.0.1" ; } | org . junit . Assert . assertNotNull ( lodsve . web . utils . IpUtils . getInetIp ( ) ) |
testGetDescription ( ) { java . lang . String description = ( ( ( ( ( d_threeArmModel . getTitle ( ) ) + "<sp>for<sp>\"" ) + ( d_threeArmStudy . getName ( ) ) ) + "\"<sp>on<sp>Endpoint<sp>\"" ) + ( d_endpoint . getName ( ) ) ) + "\"" ; "<AssertPlaceHolder>" ; } getDescription ( ) { return d_description ; } | org . junit . Assert . assertEquals ( description , d_threeArmModel . getDescription ( ) ) |
testIsInternalURL_SameHostOtherApp ( ) { java . lang . String serviceAccessURL = "https://localhost:8080/otherapp/subscriptions.jsp" ; boolean result = ctrl . isInternalURL ( serviceAccessURL ) ; "<AssertPlaceHolder>" ; } isInternalURL ( java . lang . String ) { if ( ( serviceAccessURL == null ) || ( ( serviceAccessURL... | org . junit . Assert . assertFalse ( result ) |
a_property_of_a_class_can_be_overridden_with_full_setter_name ( ) { com . flextrade . jfixture . JFixture fixture = new com . flextrade . jfixture . JFixture ( ) ; fixture . customise ( ) . propertyOf ( component . customisation . TestOverrideProperties . OverridePropertiesType . class , "setSize" , ( - 123 ) ) ; compo... | org . junit . Assert . assertEquals ( ( - 123 ) , type . getSize ( ) ) |
testEmptyAuth ( ) { java . util . List < org . apache . hadoop . util . ZKUtil . ZKAuthInfo > result = org . apache . hadoop . util . ZKUtil . parseAuth ( "" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( allocatedSlots . nextSetBit ( 0 ) ) == ( - 1 ) ; } | org . junit . Assert . assertTrue ( result . isEmpty ( ) ) |
testMergeRequestNote ( ) { org . gitlab4j . api . models . Note note = org . gitlab4j . api . JsonUtils . unmarshalResource ( org . gitlab4j . api . models . Note . class , "merge-request-note.json" ) ; "<AssertPlaceHolder>" ; } compareJson ( T , java . lang . String ) { java . io . InputStreamReader reader = new java ... | org . junit . Assert . assertTrue ( org . gitlab4j . api . JsonUtils . compareJson ( note , "merge-request-note.json" ) ) |
testGoodDates2 ( ) { com . github . anno4j . model . Annotation annotation = this . anno4j . createObject ( com . github . anno4j . model . Annotation . class ) ; annotation . setCreated ( com . github . anno4j . model . CreationProvenanceTest . GOOD_DATE ) ; com . github . anno4j . model . Annotation result = this . a... | org . junit . Assert . assertEquals ( com . github . anno4j . model . CreationProvenanceTest . GOOD_DATE , result . getCreated ( ) ) |
testGroupByWithNullValue ( ) { org . apache . tajo . storage . fragment . FileFragment [ ] frags = org . apache . tajo . engine . planner . physical . StorageManager . splitNG ( org . apache . tajo . engine . planner . physical . TestPhysicalPlanner . conf , "score" , org . apache . tajo . engine . planner . physical .... | org . junit . Assert . assertEquals ( 10 , count ) |
testCloseReopen ( ) { store . close ( ) ; store = new nl . inl . blacklab . externalstorage . ContentStoreDirZip ( dir ) ; "<AssertPlaceHolder>" ; } retrieve ( int ) { java . lang . String [ ] rv = retrieveParts ( id , new int [ ] { - 1 } , new int [ ] { - 1 } ) ; return rv == null ? null : rv [ 0 ] ; } | org . junit . Assert . assertEquals ( str [ 0 ] , store . retrieve ( 1 ) ) |
doit ( ) { com . predic8 . membrane . core . util . URIFactory uriFactory = new com . predic8 . membrane . core . util . URIFactory ( true ) ; com . predic8 . membrane . core . http . Response res = new com . predic8 . membrane . core . transport . http . HttpClient ( ) . call ( new com . predic8 . membrane . core . ht... | org . junit . Assert . assertEquals ( 200 , res . getStatusCode ( ) ) |
testGetAggregation_nonEmptyRepository_keyDoesntExist_assertNoAggregation ( ) { final org . nhindirect . monitor . dao . entity . Aggregation insert = new org . nhindirect . monitor . dao . entity . Aggregation ( ) ; insert . setExchangeBlob ( new byte [ ] { 0 , 3 , 2 } ) ; insert . setId ( "12345" ) ; insert . setVersi... | org . junit . Assert . assertNull ( aggr ) |
when_defaults_then_mobileFilterActive ( ) { org . n52 . io . request . FilterResolver resolver = createResolver ( org . n52 . io . request . IoParameters . createDefaults ( ) ) ; "<AssertPlaceHolder>" ; } hasMobileFilter ( ) { return ( parameters . getMobile ( ) ) != null ; } | org . junit . Assert . assertFalse ( resolver . hasMobileFilter ( ) ) |
testIsPruneDuplicateIndexDefs ( ) { classUnderTest . setPruneDuplicateIndexDefs ( true ) ; "<AssertPlaceHolder>" ; } isPruneDuplicateIndexDefs ( ) { return pruneDuplicateIndexDefs ; } | org . junit . Assert . assertEquals ( true , classUnderTest . isPruneDuplicateIndexDefs ( ) ) |
testGoodCyShutdownEvent ( ) { final org . cytoscape . application . events . CyShutdownEvent e = new org . cytoscape . application . events . CyShutdownEvent ( source ) ; "<AssertPlaceHolder>" ; } abortShutdownReason ( ) { return reason ; } | org . junit . Assert . assertNull ( e . abortShutdownReason ( ) ) |
testForkGroup ( ) { org . jclouds . openstack . nova . v2_0 . domain . SecurityGroupRule rule = mock ( org . jclouds . openstack . nova . v2_0 . domain . SecurityGroupRule . class ) ; java . lang . String uniqueGroup = se . kth . karamel . common . util . settings . NovaSetting . NOVA_UNIQUE_GROUP_NAME ( clusterName , ... | org . junit . Assert . assertEquals ( "10" , groupId ) |
testConnect ( ) { rx . Completable completable = rx . Completable . complete ( ) ; org . mockito . Mockito . when ( client . connect ( ) ) . thenReturn ( completable ) ; streamingConnection . connect ( ) ; "<AssertPlaceHolder>" ; } isClosed ( ) { return ! ( connected ) ; } | org . junit . Assert . assertTrue ( ( ! ( streamingConnection . isClosed ( ) ) ) ) |
testValidateFalseNw_dst ( ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) ) |
shouldNotBeEqualBecauseOfDifferentLocalDate ( ) { com . calendarfx . model . Interval interval1 = new com . calendarfx . model . Interval ( java . time . LocalDate . of ( 2017 , 1 , 14 ) , java . time . LocalTime . of ( 10 , 0 ) , java . time . LocalDate . of ( 2017 , 1 , 15 ) , java . time . LocalTime . of ( 23 , 0 ) ... | org . junit . Assert . assertThat ( equal , org . hamcrest . Matchers . is ( false ) ) |
testToBeanToJson_NonEmpty ( ) { org . tests . model . json . EBasicJsonMap bean = new org . tests . model . json . EBasicJsonMap ( ) ; bean . setId ( 99L ) ; bean . setContent ( new java . util . LinkedHashMap ( ) ) ; io . ebean . text . json . JsonWriteOptions options = new io . ebean . text . json . JsonWriteOptions ... | org . junit . Assert . assertEquals ( expectedJson , asJson ) |
getUsersList ( ) { org . oscm . internal . vo . VOUserDetails user1 = new org . oscm . internal . vo . VOUserDetails ( ) ; user1 . setUserId ( "user1ID" ) ; user1 . setEMail ( "user1Email" ) ; user1 . setOrganizationName ( "user1OrgName" ) ; user1 . setOrganizationId ( "user1OrgID" ) ; org . oscm . internal . vo . VOUs... | org . junit . Assert . assertTrue ( ( hasFirst && hasSecond ) ) |
testUpdateBusinessObjectDataNotificationRegistration ( ) { org . finra . herd . model . api . xml . NotificationRegistrationKey businessObjectDataNotificationRegistrationKey = new org . finra . herd . model . api . xml . NotificationRegistrationKey ( NAMESPACE , NOTIFICATION_NAME ) ; org . finra . herd . model . api . ... | org . junit . Assert . assertEquals ( businessObjectDataNotificationRegistration , result ) |
manageModificationVDiskCreation_VSERVER_RETRIEVEGUEST ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSERVER_RETRIEVEGUEST ; org . oscm . app . iaas . data . FlowState newState = null ; newState = vServerProcessor . manageModificationVDiskCreation ( "controller... | org . junit . Assert . assertEquals ( FlowState . FINISHED , newState ) |
testHoltWintersDeviation ( ) { com . salesforce . dva . argus . service . metric . transform . HoltWintersAnalysis holtWinters = new com . salesforce . dva . argus . service . metric . transform . HoltWintersAnalysis ( ) ; java . util . Map < java . lang . Long , java . lang . Double > dp = new java . util . HashMap < ... | org . junit . Assert . assertEquals ( expected , deviationDatapoints ) |
rsaValidateFalse ( ) { org . ebayopensource . fido . uaf . tlv . Tags t = getTags ( org . ebayopensource . fido . uaf . tlv . TestAssertions . regRequestAssertionsFromRaon ( ) ) ; org . ebayopensource . fido . uaf . crypto . CertificateValidatorImpl validator = new org . ebayopensource . fido . uaf . crypto . Certifica... | org . junit . Assert . assertTrue ( ( ! validate ) ) |
testOutputInputLowercase ( ) { for ( int i = 1 ; i <= 4999 ; i ++ ) { java . lang . String encoded = org . kitodo . dataeditor . pagination . RomanNumeral . format ( i , false ) ; int decoded = org . kitodo . dataeditor . pagination . RomanNumeral . parseInt ( encoded ) ; "<AssertPlaceHolder>" ; } } parseInt ( java . l... | org . junit . Assert . assertEquals ( i , decoded ) |
testTest ( ) { logger . info ( "test" ) ; com . datumbox . framework . common . dataobjects . FlatDataList errorList = new com . datumbox . framework . common . dataobjects . FlatDataList ( java . util . Arrays . asList ( new java . lang . Object [ ] { - 2.7755575615629E-15 , - 2.0816681711722E-15 , - 2.2204460492503E-... | org . junit . Assert . assertEquals ( expResult , result ) |
shouldCopyEnvironment ( ) { java . util . Properties expected = new java . util . Properties ( ) ; expected . putAll ( java . lang . System . getenv ( ) ) ; com . oracle . bedrock . runtime . PropertiesBuilder builder = com . oracle . bedrock . runtime . PropertiesBuilder . fromCurrentEnvironmentVariables ( ) ; java . ... | org . junit . Assert . assertThat ( properties , org . hamcrest . CoreMatchers . is ( expected ) ) |
testEveryoneMemberOf ( ) { java . util . Iterator < org . apache . jackrabbit . api . security . user . Group > groups = everyoneGroup . memberOf ( ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( current . next ) != null ; } | org . junit . Assert . assertFalse ( groups . hasNext ( ) ) |
testRetainsWarningHeadersReceivedFromUpstream ( ) { originResponse . removeHeaders ( "Warning" ) ; final java . lang . String warning = "199<sp>fred<sp>\"misc\"" ; originResponse . addHeader ( "Warning" , warning ) ; backendExpectsAnyRequest ( ) . andReturn ( originResponse ) ; replayMocks ( ) ; final org . apache . hc... | org . junit . Assert . assertEquals ( warning , result . getFirstHeader ( "Warning" ) . getValue ( ) ) |
getScheduleChangedReportMessage ( ) { org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveClimateControlScheduleCommandClass cls = ( ( org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveClimateControlScheduleCommandClass ) ( getCommandClass ( CommandClass . COMMAND_CLASS... | org . junit . Assert . assertArrayEquals ( expectedResponse , msg . getMessagePayload ( ) ) |
testDockerFileOptimisation ( ) { io . fabric8 . maven . docker . assembly . Arguments a = Arguments . Builder . get ( ) . withParam ( "c1" ) . withParam ( "echo<sp>fourth" 3 ) . build ( ) ; java . lang . String dockerfileContent = new io . fabric8 . maven . docker . assembly . DockerFileBuilder ( ) . add ( "/src" , "/d... | org . junit . Assert . assertEquals ( expected , stripCR ( dockerfileContent ) ) |
getAlreadyAssignedFields_yieldFieldFromBaseClass ( ) { org . vaadin . teemu . clara . binder . BinderTest . SubcontrollerWithoutFieldBinding controller = new org . vaadin . teemu . clara . binder . BinderTest . SubcontrollerWithoutFieldBinding ( new com . vaadin . ui . Button ( "myButton" ) ) ; org . vaadin . teemu . c... | org . junit . Assert . assertEquals ( 1 , assignedFields . size ( ) ) |
equals_replaceDataDifferent_returnsFalse ( ) { com . amazonaws . services . dynamodbv2 . AcquireLockOptions left = createLockOptions ( ) ; com . amazonaws . services . dynamodbv2 . AcquireLockOptions right = com . amazonaws . services . dynamodbv2 . AcquireLockOptions . builder ( "partitionKey" ) . withSortKey ( "sortK... | org . junit . Assert . assertFalse ( left . equals ( right ) ) |
testStatsDHistogramReporting ( ) { org . apache . flink . runtime . metrics . MetricRegistryImpl registry = null ; org . apache . flink . metrics . statsd . StatsDReporterTest . DatagramSocketReceiver receiver = null ; java . lang . Thread receiverThread = null ; long timeout = 5000 ; long joinTimeout = 30000 ; java . ... | org . junit . Assert . assertEquals ( expectedLines , lines ) |
testCloneWithParam ( ) { org . pentaho . di . trans . TransMeta transMeta = new org . pentaho . di . trans . TransMeta ( "transFile" , "myTrans" ) ; transMeta . addParameterDefinition ( "key" , "defValue" , "description" ) ; java . lang . Object clone = transMeta . realClone ( true ) ; "<AssertPlaceHolder>" ; } realClo... | org . junit . Assert . assertNotNull ( clone ) |
enkeleAutorisatieZonderRol ( ) { addAutorisaties ( "000123" , SoortDienst . ATTENDERING , SoortDienst . ZOEK_PERSOON ) ; "<AssertPlaceHolder>" ; } bepaalAutorisatie ( java . lang . String , nl . bzk . algemeenbrp . dal . domein . brp . enums . Rol , nl . bzk . algemeenbrp . dal . domein . brp . enums . SoortDienst ) { ... | org . junit . Assert . assertEquals ( true , subject . bepaalAutorisatie ( "000123" , null , SoortDienst . ZOEK_PERSOON ) . isPresent ( ) ) |
invalidReturnType ( ) { gov . hhs . fha . nhinc . patientdiscovery . aspect . MCCIIN000002UV01EventDescriptionBuilder builder = new gov . hhs . fha . nhinc . patientdiscovery . aspect . MCCIIN000002UV01EventDescriptionBuilder ( ) ; builder . setReturnValue ( new java . lang . Object ( ) ) ; gov . hhs . fha . nhinc . ev... | org . junit . Assert . assertNotNull ( eventDescription ) |
testPaperMetricAddSuccess ( ) { com . alibaba . craftsman . dto . PaperMetricAddCmd paperMetricAddCmd = new com . alibaba . craftsman . dto . PaperMetricAddCmd ( ) ; com . alibaba . craftsman . dto . clientobject . PaperMetricCO paperMetricCO = new com . alibaba . craftsman . dto . clientobject . PaperMetricCO ( ) ; pa... | org . junit . Assert . assertTrue ( response . isSuccess ( ) ) |
testArrayUpsertSmallIntWithNulls ( ) { org . apache . phoenix . end2end . Connection conn = org . apache . phoenix . end2end . DriverManager . getConnection ( getUrl ( ) ) ; java . lang . String t5 = generateUniqueName ( ) ; conn . createStatement ( ) . execute ( ( ( "CREATE<sp>TABLE<sp>" + t5 ) + "<sp>(<sp>k<sp>VARCHA... | org . junit . Assert . assertEquals ( rs . getArray ( 1 ) , array ) |
g01_throwException1 ( ) { try { proxy . throwException1 ( ) ; org . junit . Assert . fail ( "Exception<sp>expected" ) ; } catch ( org . apache . juneau . rest . test . client . InterfaceProxyTest . InterfaceProxy . InterfaceProxyException1 e ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return msg ; } | org . junit . Assert . assertEquals ( "foo" , e . getMessage ( ) ) |
testBug853254 ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . silent . SilentChemObjectBuilder . getInstance ( ) ; java . lang . String filename = "data/mdl/bug853254-2.mol" ; java . io . InputStream ins = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream... | org . junit . Assert . assertTrue ( isSubset ) |
testGetUserIdentifier ( ) { System . out . println ( "getUserIdentifier" ) ; java . lang . String expResult = edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getUserIdentifier ( ) ; "<AssertPlaceHolder>" ; } getUserIdentifier ( ) { return userIdentifier ; } | org . junit . Assert . assertEquals ( expResult , edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getUserIdentifier ( ) ) |
shouldHaveName ( ) { com . qcadoo . view . internal . api . ComponentPattern pattern = new com . qcadoo . view . internal . components . form . FormComponentPattern ( getComponentDefinition ( "testName" , null ) ) ; java . lang . String name = pattern . getName ( ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ... | org . junit . Assert . assertEquals ( "testName" , name ) |
testVerify ( ) { org . jscep . client . verification . CertificateVerifier verifier = new org . jscep . client . verification . OptimisticCertificateVerifier ( ) ; "<AssertPlaceHolder>" ; } verify ( java . security . cert . X509Certificate ) { return this . cert . equals ( cert ) ; } | org . junit . Assert . assertTrue ( verifier . verify ( mock ( java . security . cert . X509Certificate . class ) ) ) |
testPlayerMoveIntoBannedIsland ( ) { org . bukkit . entity . Player player = mock ( org . bukkit . entity . Player . class ) ; when ( player . getUniqueId ( ) ) . thenReturn ( uuid ) ; when ( im . hasIsland ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . eq ( uuid ) ) ) . thenReturn ( true ) ; when ( pl... | org . junit . Assert . assertTrue ( e . isCancelled ( ) ) |
operationsWhileDraining ( ) { org . mockito . ArgumentCaptor < io . grpc . internal . ClientStreamListener > sublistenerCaptor1 = org . mockito . ArgumentCaptor . forClass ( io . grpc . internal . ClientStreamListener . class ) ; final java . util . concurrent . atomic . AtomicReference < io . grpc . internal . ClientS... | org . junit . Assert . assertEquals ( 1 , fakeClock . numPendingTasks ( ) ) |
cache_loop5 ( ) { ws . prova . kernel2 . ProvaKnowledgeBase kb = new ws . prova . reference2 . ProvaKnowledgeBaseImpl ( ) ; ws . prova . kernel2 . ProvaResultSet resultSet = new ws . prova . reference2 . ProvaResultSetImpl ( ) ; ws . prova . parser2 . ProvaParserImpl parser = new ws . prova . parser2 . ProvaParserImpl ... | org . junit . Assert . assertEquals ( resultSet . getSolutions ( ) . size ( ) , numSolutions [ ( i ++ ) ] ) |
testCfsettingDebugNo ( ) { final java . lang . String cfcSrc = "<cfsetting<sp>showDebugOutput=\"No\">" ; com . cflint . api . CFLintResult lintresult = cfBugs . scan ( cfcSrc , "test" ) ; "<AssertPlaceHolder>" ; } getIssues ( ) { return cflint . getBugs ( ) . getBugList ( ) ; } | org . junit . Assert . assertEquals ( 0 , lintresult . getIssues ( ) . size ( ) ) |
testBuildTableNameNonRootServicePathDataModelByEntityNoEncoding ( ) { System . out . println ( ( ( ( ( getTestTraceHead ( "someId=someType" 4 ) ) + "--------<sp>When<sp>no<sp>encoding<sp>and<sp>when<sp>a<sp>non<sp>root<sp>service-path<sp>is<sp>notified/defaulted<sp>and<sp>data_model<sp>is<sp>" ) + "'dm-by-service-path'... | org . junit . Assert . assertEquals ( expecetedTableName , builtTableName ) |
testListStoragesByGroupAndIp ( ) { com . github . tobato . fastdfs . service . TrackerClientTest . LOGGER . debug ( "testListStoragesByGroupAndIp.." ) ; java . util . List < com . github . tobato . fastdfs . domain . fdfs . StorageState > list = trackerClient . listStorages ( TestConstants . DEFAULT_GROUP , TestConstan... | org . junit . Assert . assertNotNull ( list ) |
testGetTarget ( ) { org . openscience . cdk . interfaces . IAtomContainer expResult = org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) . newInstance ( org . openscience . cdk . interfaces . IAtomContainer . class ) ; handler . setTarget ( expResult ) ; org . openscience . cdk . interfaces . IAtomCon... | org . junit . Assert . assertEquals ( expResult , result ) |
of_notNull ( ) { org . javamoney . calc . banking . BalloonLoanPayment ci = org . javamoney . calc . banking . BalloonLoanPayment . of ( org . javamoney . calc . common . RateAndPeriods . of ( 0.05 , 1 ) , org . javamoney . moneta . Money . of ( 5 , "CHF" ) ) ; "<AssertPlaceHolder>" ; } of ( org . javamoney . calc . co... | org . junit . Assert . assertNotNull ( ci ) |
testLoadAllSamples ( ) { org . gedcom4j . parser . GedcomParser gp = new org . gedcom4j . parser . GedcomParser ( ) ; gp . setStrictCustomTags ( false ) ; gp . setStrictLineBreaks ( false ) ; java . io . File sampleFolder = new java . io . File ( "sample" ) ; java . lang . String [ ] allFiles = sampleFolder . list ( ne... | org . junit . Assert . assertNotNull ( gp . getGedcom ( ) ) |
deleteNonExistentDataTag ( ) { cern . c2mon . shared . client . configuration . api . tag . DataTag dataTag = new cern . c2mon . shared . client . configuration . api . tag . DataTag ( ) ; dataTag . setId ( 20L ) ; dataTag . setDeleted ( true ) ; java . util . List < cern . c2mon . shared . client . configuration . api... | org . junit . Assert . assertEquals ( 0 , parser . parse ( config ) . size ( ) ) |
testGetLocBigNegLngBigLat ( ) { System . out . println ( "getLoc" ) ; double lat = - 150 ; double lng = - 580 ; testPackage . locatonsMock instance = new testPackage . locatonsMock ( ) ; boolean expResult = false ; boolean result = instance . getLoc ( lat , lng ) ; "<AssertPlaceHolder>" ; } getLoc ( double , double ) {... | org . junit . Assert . assertEquals ( expResult , result ) |
canEscapeQueryWithSafeForQuery ( ) { com . azure . common . implementation . PercentEscaper escaper = UrlEscapers . QUERY_ESCAPER ; java . lang . String actual = escaper . escape ( com . azure . common . implementation . UrlEscaperTests . safeForQuery ) ; "<AssertPlaceHolder>" ; } escape ( java . lang . String ) { java... | org . junit . Assert . assertEquals ( com . azure . common . implementation . UrlEscaperTests . safeForQuery , actual ) |
testExtractCauseFrom_ExecutionException ( ) { final org . adempiere . exceptions . AdempiereException expectedCause = newAdempiereException ( ) ; final java . lang . Throwable actualCause = org . adempiere . exceptions . AdempiereException . extractCause ( new java . util . concurrent . ExecutionException ( expectedCau... | org . junit . Assert . assertSame ( expectedCause , actualCause ) |
testTimestamp ( ) { long millis = ( ( java . lang . System . currentTimeMillis ( ) ) / 1000 ) * 1000 ; java . sql . Timestamp timestamp = new java . sql . Timestamp ( millis ) ; java . sql . Timestamp result = executeBackAndForth ( timestamp , java . sql . Timestamp . class ) ; "<AssertPlaceHolder>" ; } getTime ( ) { r... | org . junit . Assert . assertEquals ( timestamp . getTime ( ) , result . getTime ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.